- Denizen Version
- REL-1770
A procedure script which formats time.
It supports 12 hour and 24 hour time format. Optionally it displays the time period.
The first argument must be a world, player or integer. The second one must be either 12 or 24 depending on what time format you want.
The last one is a boolean if the time period should be displayed or not, which is optional.
Syntax for Context is:
Examples:
To format the time of the players world in an 12 hour format with period.
02:10AM Night
To format the time of a player in an 12 hour format without period.
02:10AM
To format a specific time in a 24 hour format with period.
18:07 Day
It supports 12 hour and 24 hour time format. Optionally it displays the time period.
The first argument must be a world, player or integer. The second one must be either 12 or 24 depending on what time format you want.
The last one is a boolean if the time period should be displayed or not, which is optional.
Syntax for Context is:
[PlayerTag/WorldTag/Element(Integer)]
|[12/24]
|(true/{false})
Examples:
To format the time of the players world in an 12 hour format with period.
- narrate <proc[format_time].context[<player.world>|12|true]>
02:10AM Night
To format the time of a player in an 12 hour format without period.
- narrate <proc[format_time].context[<player>|12]>
02:10AM
To format a specific time in a 24 hour format with period.
- narrate <proc[format_time].context[12123|24|true]>
18:07 Day