trait Duration extends Object
- Annotations
- @JSType() @native()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Duration
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def as(unit: DurationUnit): Double
- val days: Double
- def equals(that: Duration): Boolean
- def fromISO(text: String, options: DurationOptions): Duration
- def get(unit: DurationUnit): Double
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- val hours: Double
- val invalidExplanation: |[String, Null]
- val invalidReason: |[String, Null]
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val isValid: Boolean
- val locale: String
- def mapUnits(fn: Function1[Duration, Duration]): Duration
- def minus(that: Duration): Duration
- val minutes: Double
- val months: Double
- def negate(): Duration
- val numberingSystem: String
- def plus(that: Duration): Duration
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val quarters: Double
- val seconds: Double
- def shiftTo(units: Array[DurationUnit]*): Duration
- def toISO(): String
- def toJSON(): String
- def toLocaleString(): String
- Definition Classes
- Object
- def toObject(): DurationInit
- def valueOf(): Any
- Definition Classes
- Object
- val weeks: Double
- val years: Double