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.

Script Date Shenanigans 2.1

Adds new Skript expressions for getting real date information from the server or variables

  1. Veraid
    Supported Minecraft Versions:
    • 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15
    This adds the following expressions to Skript:

    day of [the] week [value] [(of|for|at) %date%] - Returns the day of the week, for example "Tuesday" or if value is used returns it as an integer
    day [value] [(of|for|at) %date%] - Returns the day of the month, for example "25th" or if value is used returns it as an integer
    month [value] [(of|for|at) %date%] - Returns the month, for example "February" or if value is used returns it as an integer
    year [(of|for|at) %date%] - Returns the year, for example "2020"
    real[ ]time [(of|for|at) %date%] - Returns the time, for example "2:38:24"
    time[ ]zone [(of|for|at) %date%] - Returns the time zone being used
    hour[\s] [(of|for|at) %date%] - Returns the hour, for example "20" if 8 pm
    minute[\s] [(of|for|at) %date%] - Returns the minute, for example "13" if 8:13 pm
    second[\s] [(of|for|at) %date%] - Returns the second, for example "12" if 8:13:12 pm
    duration [format] of %date% [and %date%] - Returns the difference between two dates (of if the second date is not set difference between the date and now) but formatted with apache. For example send duration of 1.4 hours and 10 seconds from now and now will return 1h 24m 10s this also tells you when something was completed

    Dependencies
    Skript Mirror


    Example
    Code (Text):
    1. command /date:
    2.   trigger:
    3.     send "&a(Today) &f%day%, %month%, %year% (%day of the week% at %real time%)"
    4.     set {_date} to now
    5.     add 1000 days to {_date}
    6.     send "&c(1000 days from now) &f%day of {_date}%, %month of {_date}%, %year of {_date}% (%day of the week for {_date}% at %realtime of {_date}%)"