TimeStamp
Absolute time (and date). (Like DateTime
)
Instance Fields:
seconds
: double - The contained value - seconds since start of the game (or save).
Static Fields:
never
: TimeStamp - Infinitely in the past (-inf
). Useful for initialization of time-stamp variables.none
: TimeStamp - No time (containsNaN
). Note thattime.since(none) = inf
butnow - none
is stillnone
.
Instance Properties:
s
: double - Shortcut forseconds
.parts
: TimeParts - The time-stamp separated into parts (second, hour, …).