apoc.temporal.formatDuration
Function APOC Core
apoc.temporal.formatDuration(input, format) | Format a Duration
Usage Examples
This function formats durations using a list of built-in formats.
RETURN apoc.temporal.formatDuration(duration({seconds: 6000}), "hour") AS output;
output |
---|
"01" |
RETURN apoc.temporal.formatDuration( duration({seconds: 10000}), "hour_minute") AS output;
output |
---|
"02:46" |