Time - script API
StackState Self-hosted v5.1.x
Last updated
StackState Self-hosted v5.1.x
Last updated
Time API offers helper functions to manipulate with in StackState scripts.
Time.currentTimeSlice()
Returns a time slice for the current timestamp
Time.format(instant: Instant, pattern: String)
Format an instant to string using the given formatting pattern
Format an instant to ISO 8601 time
Time.epochMs(instant: Instant)
Convert a string timestamp to epoch
instant
- .
pattern
-
instant
- .