Duration

data class Duration(val dayTimeDuration: Duration?, val yearMonthDuration: Period?) : FeelValue

Duration value (either days/time or years/months).

Examples:

  • duration('P1DT2H30M') // 1 day, 2 hours, 30 minutes

  • duration('P2Y3M') // 2 years, 3 months

Constructors

Link copied to clipboard
constructor(dayTimeDuration: Duration?, yearMonthDuration: Period?)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T : Any> asType(): T

Convert to Kotlin type T.

Link copied to clipboard

Check if this value is null.

Link copied to clipboard
fun toKotlin(): Any?

Convert FEEL value to Kotlin type.

Link copied to clipboard
open override fun toString(): String