time
Input Stack:
|
⇨ | Output Stack:
|
Generates a line based on the current time. Supported modes are:
- secondOfMinute
- secondOfDay
- minuteOfHour
- minuteOfDay
- hourOfDay
- dayOfWeek
- dayOfMonth
- dayOfYear
- monthOfYear
- yearOfCentury
- yearOfEra
- seconds (since epoch)
- days (since epoch)
The mode can also be a value of the enum ChronoField.
Examples:
Hour of Day | Enum |
hourOfDay,:time | HOUR_OF_DAY,:time |