cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a Time Duration using Hours Minutes & Seconds?

zlatan316
Champ on-the-rise
Champ on-the-rise
Hi,

I am currently setting my timer duration as PT2M, but I would like to have it hold a combination of Hours Minutes and Seconds. Is there an example I can use that can handle a timer duration in this way?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

http://en.wikipedia.org/wiki/ISO_8601#Durations


For example, "P3Y6M4DT12H30M5S" represents a duration of "three years, six months, four days, twelve hours, thirty minutes, and five seconds".

Regards
Martin

zlatan316
Champ on-the-rise
Champ on-the-rise
Thank you Martin, this worked perfectlySmiley Happy