Time - script API
StackState Self-hosted v5.1.x
Function: Time.currentTimeSlice()
Time.currentTimeSlice()Examples
Time.currentTimeSlice().then { slice ->
Topology.query('environments in ("Production")')
.at(slice)
.components()
.thenCollect { component ->
Component
.withId(component.id)
.at(slice)
.get()
}
}Function: Time.format(instant: Instant, pattern: String)
Time.format(instant: Instant, pattern: String)Args
Examples
Function: Time.epochMs(instant: Instant)
Time.epochMs(instant: Instant)Args
Examples
Last updated