Script [Deleted] Format Timespans

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Status
Not open for further replies.

Sovde

Staff member
Moderator
Feb 18, 2022
24
2
3
Sovde submitted a new resource:

Format Timespans - A function for formatting timespans like you would format a date.

Requires SkBee for the ticks of %timespan% expression, though this could be swapped out for skript-reflect or another addon.

This script allows you to format timespans in a similar way to how you can format dates (%date% formatted as "hh:mm:ss").
the main function is formatTimespan(timespan, format, trim-zeroes).
you give it your timespan, optionally a format string, and optionally a boolean to trim leading zeroes.

ex:
formatTimespan((1 hour, 1 minute, 1 second)) -> "01:01:01"...

Read more about this resource...
 
Status
Not open for further replies.