Skip to content

Format Duration Node

Utils/Format

Writes a number of seconds as a readable duration such as 2h 15m

format_durationstd
Inputs3
Outputs1
Security exposure10/10
Packagestd

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
10/10High
PrivacyPotential sensitivity of processed data.
10/10High
PerformanceRuntime or resource pressure.
10/10High
GovernancePolicy, audit, or compliance impact.
10/10High
ReliabilityOperational stability considerations.
10/10High
CostExternal or compute cost impact.
10/10High

Input Pins

3

Seconds

Float
seconds

Length of the duration in seconds

Default 0

Style

String
style

Short writes 2h 15m, Long writes 2 hours 15 minutes, Clock writes 02:15:00

Default Short
ShortLongClock

Max Parts

Integer
max_parts

How many units to show before stopping, for example 2 gives 2h 15m instead of 2h 15m 3s

Default 2

Output Pins

1

Text

String
text

The readable duration

Node Info

Internal name
format_duration
Category
Utils/Format