Dragos Rachieru
10/24/2022, 11:55 AMinstant.get(DateTimeUnit.HOUR)
?Dmitry Khalanskiy [JB]
10/24/2022, 12:16 PMInstant
is a moment in time, it knows nothing about calendars, wall clocks, etc. LocalDateTime
is a representation of an Instant
in a specific time zone. So,
instant.toLocalDateTime(timeZone).hour
.Dragos Rachieru
10/24/2022, 1:40 PM