How to parse an ISO-8601 duration in Objective C?
Posted
by Andreas
on Stack Overflow
See other posts from Stack Overflow
or by Andreas
Published on 2009-07-18T01:32:06Z
Indexed on
2010/05/02
9:17 UTC
Read the original article
Hit count: 301
I'm looking for an easy way to parse a string that contains an ISO-8601 duration in Objective C. The result should be something usable like a NSTimeInterval
.
An example of an ISO-8601 duration: P1DT13H24M17S
, which means 1 day, 13 hours, 24 minutes and 17 seconds.
© Stack Overflow or respective owner