Time Durations
Share
Explore

Time DurationsTime Durations

⁠⁠⁠

Formulas: Days(), Hours(), Minutes(), Seconds(), and Duration()
Category: Duration
Days()
Creates a time duration for days
Another way to say it...
Hey Coda, I want you to take this number I’m providing and convert it into a duration of days.
Hours()
Creates a time duration for hours
Or, as one might say...
Hey Coda, I want you to take this number I’m providing and convert it into a duration of hours.
Minutes()
Creates a time duration for minutes
Another way to say it...
Hey Coda, I want you to take this number I’m providing and convert it into a duration of minutes.
Seconds()
Creates a time duration for seconds
Or, as one might say...
Hey Coda, I want you to take this number I’m providing and convert it into a duration of seconds.
Duration()
Creates a duration of time
Or, put otherwise...
Hey Coda, I want you to give me a duration from the provided number of days, hours, etc. that I provide.

Each formula—with exception of Duration()—has one parameter. Duration() combines all parameters of the other formulas:
Days, Hours, Minutes, & Seconds

Days(Days)
The number of days.
Hours(Hours)
The number of hours.
Minutes(Minutes)
The number of minutes.
Seconds(Seconds)
The number of seconds.

Duration (Days, Hours, Minutes, Seconds)
Input the number of days, hours, minutes, and seconds.

Days, Hours, Minutes & Seconds

Time-based values can be especially difficult to perform mathematical operations with. These duration formulas help you quickly turn a single number into a day, hour, minute, or second value to use within mathematical formulas.
45
days from today it will be
4/16/2024
Add hours to a moment in time
7
hours from now it will be
12:00 AM
Add minutes to a time value
28
minutes to
​2:28 AM
12/31/1899 2:56 AM

Add seconds to a time value
In
132
seconds,
the time will be

Duration

Duration, rather than helping you perform mathematical operations with time-based values, helps you quickly create a unique duration value.
Each one of the parameters with Duration() is optional, and you can choose which parameter you are trying to access by typing the parameter followed by a : .
5 days
Duration(days: 5)
5 hrs
Duration(hours: 5)
5 mins
Duration(minutes: 5)
5 secs
Duration(seconds: 5)
Since each parameter is optional, you can use as few or as many as you like!

Done
Find out when a persons work shift would end based on break time and shift length
Done