sys::Obj sys::Virtual sys::Component sys::Service datetime::DateTimeService datetimeStd::DateTimeServiceStd
public class DateTimeServiceStd
public static native int doGetUtcOffset()
public static native long doNow()
public static native void doSetClock(long nanos)
public virtual override int getUtcOffset()
Return current UTC offset as reported by platform
public virtual override long now()
Return the current UTC date/time on the system in nanoseconds, or
DateTime.invalid if not supported, i.e. platform does not have clock capability
public virtual override void setClock(long nanos)
Set the current UTC date/time in nanoseconds. May not be supported on
all platforms