Adding time to time

  • 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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Farid

Active Member
Feb 5, 2017
179
11
18
So I have two variables, each one is a timespan, how would I combine those with current calculations?


Example >

{v1} = 1 hour and 2 minutes and 59 seconds
{v2} = 1 hour and 3 minutes and 1 second

Once they combine > 2 hours and 6 minutes
 
code_language.skript:
set {v3} to {v1}
add {v2} to {v3}
(if you need to preserve {v1}, if not just add {v2} to {v1})
 
code_language.skript:
set {v3} to {v1}
add {v2} to {v3}
(if you need to preserve {v1}, if not just add {v2} to {v1})

Those variables were just an example, and what if I have different timings? would they work or...
 
Status
Not open for further replies.