Resource icon

TimeFormatter 1.0.1

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: [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
Author
Icecapade
Downloads
539
Views
629
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Icecapade

Share this resource

Latest updates

  1. Player and custom time support

    Added support for players. So you can display the time a player is experiencing! You can do...