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.

Timespan Formatter

Discussion in 'APIs' started by tomcool, Sep 6, 2019.

  1. tomcool

    tomcool Member

    Joined:
    Feb 25, 2018
    Messages:
    1
    Likes Received:
    0
    Allows you to convert timespans to the preferred format.

    Converts timespans like 2 days 6 hours 30 minutes 15 seconds into this clean format
    View attachment 3783

    Usage:

    set {_time} to 2 days 6 hours 30 minutes 15 seconds
    send "&c%time format from {_time}%"
     
  2. ThePowerDoctor

    ThePowerDoctor New Member

    Joined:
    Jun 29, 2019
    Messages:
    6
    Likes Received:
    0
    The code gives two errors, the first one says that the word "expression:" does not exist and the second place indicates that there is no %time format from {_time}%
     

Share This Page

Loading...