Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2437 tags...
Name<TimeTag.duration_since[<time>]>
ReturnsDurationTag
DescriptionReturns the DurationTag that passed between the input time and this time.
That is, a.duration_since[b] returns (a - b).
For example, a time on Monday, .duration_since[a time on Sunday], will return '1d'.
Generated Example
- ratelimit <player> <util.time_now.duration_since[<util.time_now>]>
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/TimeTag.java#L666