Readonly
B6Convenience property. Same as calling B.time.DateTimeFormatter.ofPattern("uuuu/MM/dd")
Readonly
B6Convenience property. Same as calling B.time.DateTimeFormatter.ofPattern("uuuu/MM/dd hh:mm:ss a")
Readonly
B6Convenience property. Same as calling B.time.DateTimeFormatter.ofPattern("hh:mm:ss a")
Readonly
CalendarThis is deprecated and should only be used when required.
Readonly
ChronoJava doc: java.time.temporial.ChronoUnit
Readonly
ClockJava doc: java.time.Clock
Readonly
DateJava doc: java.time.DateTimeFormatter
Readonly
DateJava doc: java.time.DateTimeFormatterBuilder
Readonly
DayJava doc: java.time.DayOfWeek
Readonly
DurationJava doc: java.time.Duration
Readonly
InstantJava doc: java.time.Instant
Readonly
LocalJava doc: java.time.LocalDate
Readonly
LocalJava doc: java.time.LocalDateTime
Readonly
LocalJava doc: java.time.LocalTime
Readonly
MonthJava doc: java.time.Month
Readonly
MonthJava doc: java.time.MonthDay
Readonly
OffsetJava doc: java.time.OffsetDateTime
Readonly
OffsetJava doc: java.time.OffsetTime
Readonly
PeriodJava doc: java.time.Period
Readonly
TemporalJava doc: java.time.temporal.TemporalAdjusters
Readonly
TimeThis is deprecated and should only be used when required.
Readonly
ValueJava doc: java.time.temporal.ValueRange
Readonly
YearJava doc: java.time.Year
Readonly
YearJava doc: java.time.YearMonth
Readonly
ZonedJava doc: java.time.ZonedDateTime
Readonly
ZoneJava doc: java.time.ZoneId
Readonly
ZoneJava doc: java.time.ZoneOffset
Creates a [[Java.Time.Date]] object given an [[Java.Time.Instant]]
Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds.
Returns the current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds. This method can only be used to measure elapsed time and is not related to any other notion of system or wall-clock time. The value returned represents nanoseconds since some fixed but arbitrary origin time (perhaps in the future, so values may be negative). The same origin is used by all invocations of this method in an instance of a Java virtual machine; other virtual machine instances are likely to use a different origin. This method provides nanosecond precision, but not necessarily nanosecond resolution (that is, how frequently the value changes) - no guarantees are made except that the resolution is at least as good as that of currentTimeMillis(). Differences in successive calls that span greater than approximately 292 years (263 nanoseconds) will not correctly compute elapsed time due to numerical overflow. The values returned by this method become meaningful only when the difference between two such values, obtained within the same instance of a Java virtual machine, is computed. For example, to measure how long some code takes to execute: long startTime = B.time.nanos(); // ... the code being measured ... long elapsedNanos = B.time.nanos() - startTime; To compare elapsed time against a timeout, use if (B.time.nanos() - startTime >= timeoutNanos) ... instead of if (B.time.nanos() >= startTime + timeoutNanos) ... because of the possibility of numerical overflow.
Return the user's ZoneId or the Systems ZoneId if there is no user.
This is an implementation of Java Time. See the docs for java.time (SE 11). If you don't like
java.time
, feel free to import a JavaScript library to use.Ways to get the current time: