1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Proper Time Formatter

Discussion in 'APIs' started by Coolfire02, Jun 10, 2019.

  1. Coolfire02

    Coolfire02 New Member

    Jun 15, 2018
    Likes Received:
    This is a working time formatting function that allows users to put in any given amount of seconds and it'll translate to what most people seek for when searching for a TimeFormatting function.

    The reason why I created this API is because many versions of time formatting out there, either give out something like this

    "21h 51.1766666666666666m" or
    "25h 66m 1s"

    and other weird displays.

    When creating a private skript I decided to work on my own version of the time formatter to allow for the input time to be able to display up to days so like: 1d 22h 10m 57s

    Hope this resource helps!
  2. EroliixOli

    EroliixOli Member

    Mar 2, 2017
    Likes Received:
    And how do you do it with the function? Eg my variable is {test.timer}

Share This Page