-
Notifications
You must be signed in to change notification settings - Fork 2
TimeFormatter
Hydroxycobalamin edited this page May 21, 2022
·
4 revisions
TimeFormatter is a scripter utility procedure which formats Minecraft Time in an HH:MM format.
It supports 12 hour and 24 hour time format. Optionally it displays the time period.
- The first object must be a valid world, player or integer.
- The second must be either 12 or 24 depending on what time format you want.
- The last one is a boolean which is optional, if set to true the time period will be shown.
Syntax for context [PlayerTag/WorldTag/Element(Integer)]|[12/24]|(true/{false})
Examples:
| Tag | Returns | Description |
|---|---|---|
<proc[format_time].context[<player.world>|12|true]> |
02:10AM Night |
Returns the players worlds time in an 12 hour format with period. |
<proc[format_time].context[<player>|12]> |
02:10AM |
Returns the time of a player in 12 hour format without period. |
<proc[format_time].context[12123|24|true]> |
18:07 Day |
Returns a specific time in a 24 hour format with period. |