Duration Provider
The Duration Provider calculates the duration between two timepoints.
Configuration
-
Actual/Start Time
The actual time in ISO format ("2022-08-30T23:11:03+06:00") or empty for system time. This can take the NTP or Time Provider as input as well. -
Destination Time
The end time in ISO format.
To get a new years countdown for New York, this may be ("2024-01-01T00:00:00-05:00") -
Recurring Interval Time
The Duration Provider may be used to calculate interval values like the time to the next full hour or time to midnight.
Set the interval time to the repeating time span. For an hour interval this is1h
, for 10 minutes it is10m
. 0 disables the interval. -
Use Milliseconds
Enabled to use a millisecond resolution, disabled for a resolution of seconds.
Query
-
Status
Get the actual battery level as status.Text Numeric Battery Level Excellent
1
Start and end times are valid
Fail
5
Start or end time is invalid
-
Duration
Return the duration time between start and end time.Text Numeric Duration in the format specified by Param 1
Duration value in Units specified by Param 1
-
Param 1
Repeating a token sets the leading zeros, e.g.ss
gives04
for 4 seconds.
Available Pattern Tokens:Token Duration element S
Milliseconds
s
Seconds
m
Minutes
H
Hours
d
Days
w
Weeks
'text'
Text content
E.g. use "HH:mm:ss" for an hour countdown with a second resolution.
For numeric output:
Param 1 Output S
Milliseconds
s
Seconds
m
Minutes
H
Hours
d
Days
w
Weeks
-