Resource icon

Script Date Shenanigans 2.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!

Supported Minecraft Versions
  1. 1.7
  2. 1.8
  3. 1.9
  4. 1.10
  5. 1.11
  6. 1.12
  7. 1.13
  8. 1.14
  9. 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:
command /date:
  trigger:
    send "&a(Today) &f%day%, %month%, %year% (%day of the week% at %real time%)"
    set {_date} to now
    add 1000 days to {_date}
    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}%)"
Author
Veraid
Downloads
2,044
Views
2,044
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Veraid

Latest updates

  1. Added Duration Format

    Adds a new expression called Duration Format, this is used like the difference between in skript...
  2. Remade for Skript-Mirror 1.0.0

    I downloaded my version of Skript Mirror from skunity but the version I got had many errors in...
  3. Time added and day/month/day of the week as values

    Added new expressions: hour (of|for|at) %date% - Gets Hour of date minute (of|for|at) %date% -...