E
Eric Marthinsen
Hello-
I'm trying to find the best way to turn a string like "3 days" or "72
hours" into some sort of time span representation. My first question is
what is the best way to store a duration like this? In seconds? Second,
are there any good tools for parsing a string like this? I'm aware of
the Duration library, but the author doesn't consider it stable, so I'd
prefer something stable and supported. Thanks in advance.
Regards-
Eric
I'm trying to find the best way to turn a string like "3 days" or "72
hours" into some sort of time span representation. My first question is
what is the best way to store a duration like this? In seconds? Second,
are there any good tools for parsing a string like this? I'm aware of
the Duration library, but the author doesn't consider it stable, so I'd
prefer something stable and supported. Thanks in advance.
Regards-
Eric