/tripkit/CommonCoreLegacy/com.skedgo.tripkit.common.util/TimeUtils/Duration
Duration
\ 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
Duration | constructor() |
Properties
Name | Summary |
---|---|
days | var days: Int |
hours | var hours: Int |
millis | val millis: Long |
minutes | var minutes: Int |
seconds | var seconds: Int |
sign | var sign: Int |
weeks | var weeks: Int |
Functions
Name | Summary |
---|---|
parse | fun parse(str: String) Parse according to RFC2445 ss4.3.6. (It's actually a little loose with its parsing, for better or for worse) |