Item | Sample Code | Output |
Clock | B.time.Clock.systemDefaultZone().instant() | 2024-05-18T06:46:21.772669741Z |
date() | B.time.date() | Fri May 17 23:46:21 MST 2024 |
DateTimeFormatter | B.time.DateTimeFormatter.ofPattern('MMMM dd, yyyy') Note: See details below. | Text(MonthOfYear)' 'Value(DayOfMonth,2)','' 'Value(YearOfEra,4,19,EXCEEDS_PAD) |
DateTimeFormatterBuilder | B.time.DateTimeFormatterBuilder | -- TODO -- |
DayOfWeek | B.time.ZonedDateTime.now().getDayOfWeek() | FRIDAY |
Duration | B.time.Duration.ofHours(12) | PT12H |
FormatStyle | ? | -- TODO -- |
Instant | B.time.Instant.now() Note: Instant is a specific instant in time without specifying the time Zone. | 2024-05-18T06:46:21.778853914Z |
LocalDate | B.time.LocalDate.now() | 2024-05-17 |
LocalDateTime | B.time.LocalDateTime.now() | 2024-05-17T23:46:21.779711045 |
LocalTime | B.time.LocalTime.now() | 23:46:21.780611976 |
Month | B.time.ZonedDateTime.now().getMonth() | MAY |
MonthDay | B.time.MonthDay.now() | --05-17 |
OffsetDateTime | B.time.OffsetDateTime.now() | 2024-05-17T23:46:21.796281092-07:00 |
OffsetTime | B.time.OffsetTime.now() | 23:46:21.798394899-07:00 |
Period | B.time.Period.ofDays(7) | P7D |
TextStyle | ? | -- TODO -- |
ValueRange | ? | -- TODO -- |
Year | B.time.Year.now() | 2024 |
YearMonth | B.time.YearMonth.now() | 2024-05 |
ZoneId | B.time.ZoneId.systemDefault() | SystemV/MST7 |
ZoneOffset | B.time.ZoneOffset.systemDefault() | SystemV/MST7 |
ZonedDateTime | B.time.ZonedDateTime.now() Note: ZonedDateTime is a specific instant in time including the time zone. | 2024-05-17T23:46:21.805775593-07:00[SystemV/MST7] |