Item | Sample Code | Output |
Clock | B.time.Clock.systemDefaultZone().instant() | 2024-05-09T11:32:54.871094205Z |
date() | B.time.date() | Thu May 09 04:32:54 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() | THURSDAY |
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-09T11:32:54.874199857Z |
LocalDate | B.time.LocalDate.now() | 2024-05-09 |
LocalDateTime | B.time.LocalDateTime.now() | 2024-05-09T04:32:54.874642920 |
LocalTime | B.time.LocalTime.now() | 04:32:54.874827384 |
Month | B.time.ZonedDateTime.now().getMonth() | MAY |
MonthDay | B.time.MonthDay.now() | --05-09 |
OffsetDateTime | B.time.OffsetDateTime.now() | 2024-05-09T04:32:54.877098389-07:00 |
OffsetTime | B.time.OffsetTime.now() | 04:32:54.877858254-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-09T04:32:54.881414338-07:00[SystemV/MST7] |