Sovde submitted a new resource:
Format Timespans - A function for formatting timespans like you would format a date.
Read more about this 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...