#Skript Time Formatting

1 messages · Page 1 of 1 (latest)

crystal smelt
#

Is there anyway to format time after I have added time to it? Neither of these work:

  trigger:
    set {_time} to now
    add 1 hour to {_time}
    set {_formatted} to {_time} formatted as "mm.kk.dd.MM.yyyy"```
```command /test:
  trigger:
    set {_time} to now formatted as "mm.kk.dd.MM.yyyy"
    add 1 hour to {_time}

But this does: (Without adding time)

command /test:
  trigger:
    set {_time} to now formatted as "mm.kk.dd.MM.yyyy"
    broadcast "%{_time}%"
crystal smelt
#

Solved!

This was the solution:

command /test:
  trigger:
    set {_now} to now + 1 hour formatted as "mm.kk.dd.MM.yyyy"
    broadcast "%{_now}%"