A [[Java.Time.LocalDateTime]] date-time object that represents a date-time using the user's time-zone. Represented to nanosecond precision.
const localDateTime = userTime.localDateTime();
A current date-time from the system clock in the default time-zone.
const nowZoneDateTime = userTime.now();
const nowHour = nowZoneDateTime.getHour();
A [[Java.Time.OffsetDateTime]] which is a [[Java.Time.Instant]] plus an offset from UTC/Greenwich, which allows the local date-time to be obtained. ZonedDateTime adds full time-zone rules.
const offsetDateTime = userTime.offsetDateTime();
A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 10:15:30+01:00.
const offsetTime = userTime.offsetTime();
Generated using TypeDoc
Represents times using the user's time zone.
Example