Driving Time

Driving Time

From
Slack
Status
Updating
Share
Entries

Formatted

if(floor(prop("Driving Time") / 60) > 0, format(floor(prop("Driving Time") / 60)) + " hours ", "") + if(prop("Driving Time") % 60 > 0, format(prop("Driving Time") % 60) + " minutes", "")
if(floor(prop("Driving Time") / 60) > 0,
Check to see if Driving Time divided by 60 and then rounded down is greater than 0.
format(floor(prop("Driving Time") / 60)) + " hours ", "")
If it is, display the result of Driving Time divided by 60 and rounded down and add hours, otherwise display nothing.
if(prop("Driving Time") % 60 > 0,
Check to see if the remainder of Driving Time divided by 60 is greater than 0.
format(prop("Driving Time") % 60) + " minutes", "")
If it is, display the remainder of Driving Time divided by 60 and add minutes, otherwise display nothing.
 
By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!
By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!