Now
The current time.
An instance of Now
always obtains the current time in different formats. The time zone is fixed for a given instance.
Functions
Link copied to clipboard
Obtains the current day of week.
Link copied to clipboard
Obtains the current time as a
LocalDate
.Link copied to clipboard
Obtains the current time as a
LocalDateTime
.Link copied to clipboard
Obtains the current time as a
LocalTime
.Link copied to clipboard
Obtains the current time as an
OffsetDateTime
.Link copied to clipboard
Obtains the current time as an
OffsetTime
.Link copied to clipboard
Obtains the current year and month.
Link copied to clipboard
Obtains the current time as an
ZonedDateTime
.Link copied to clipboard
Obtains the
Now
in the current time zone provided by currentTimeZone.Obtains the
Now
in the given time zone.Obtains the
Now
with the given zone offset.