tripkit-android / com.skedgo.tripkit.common.util / TimeUtils / Duration


open class Duration

According to RFC2445, durations are like this: WEEKS | DAYS [ HOURS [ MINUTES [ SECONDS ] ] ] | HOURS [ MINUTES [ SECONDS ] ] it doesn't specifically, say, but this sort of implies that you can't have 70 seconds.


Name Summary
<init> Duration()


Name Summary
days var days:Int
hours var hours:Int
minutes var minutes:Int
seconds var seconds:Int
sign var sign:Int
weeks var weeks:Int


Name Summary
getMillis open fun getMillis():Long
parse Parse according to RFC2445 ss4.3.6. (It's actually a little loose with its parsing, for better or for worse)open fun parse(str:String!):Unit