Configuration options

Table 1. Optional configuration options
key type default value description

day-of-month

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).

hour-of-day

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).

millisecond

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).

minute

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).

month

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).

second

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).

shift-by-seconds

long

0

Configure a time-shift in seconds, to move the current time to past or future.

time-zone

ZoneId

 

Override current time zone. The time will represent the SAME instant, in an explicit timezone.

If we are in a UTC time zone and you set the timezone to "Europe/Prague", the time will be shifted by the offset of Prague (e.g. if it is noon right now in UTC, you would get 14:00).

year

long

 

Set an explicit value for one of the time fields (such as ChronoField.YEAR).