Package ch.tocco.nice2.types.api
Class DurationUtil
java.lang.Object
ch.tocco.nice2.types.api.DurationUtil
Utility methods for dealing with durations (time ranges).
May get replaced with JodaTime or Java7 somewhen.
-
Method Summary
-
Method Details
-
parseDuration
Parses a duration string into a long.- Parameters:
s
- eg "-23:45:59.123" or "23:45".- Returns:
- The duration as long, or
null
if no valid duration syntax.
-