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.
days from today it will be Add hours to a moment in time
hours from now it will be Add minutes to a time value
Add seconds to a time value
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 : .
Since each parameter is optional, you can use as few or as many as you like!
Ready to master coda yourself?