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

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.

Constructors

Name Summary
<init> Duration()

Properties

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

Functions

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