DayTimeDuration

Represents the XML Schema dayTimeDuration type.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val dataType: DataType
Link copied to clipboard
open val days: Int
Link copied to clipboard
open val hours: Int
Link copied to clipboard
open val minutes: Int
Link copied to clipboard
open val nanos: Int
Link copied to clipboard
open val seconds: Int
Link copied to clipboard
open val sign: Int

Functions

Link copied to clipboard
open fun compareTo(value: DayTimeDuration): Int

Compare this dayTimeDuration with another dayTimeDuration.

Link copied to clipboard
open override fun copyMutable(): DataValue

Return a clone of this value if it (together with all value subcomponents) is possibly mutable, or return this value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare this dayTimeDuration value with another dayTimeDuration value.

Link copied to clipboard

Compare this dayTimeDuration value with another dayTimeDuration value.

Link copied to clipboard

Compare this dayTimeDuration value with another dayTimeDuration value.

Link copied to clipboard
open override fun hashCode(): Int

Hash this data value to a number.

Link copied to clipboard

Compare this dayTimeDuration value with another dayTimeDuration value.

Link copied to clipboard
open fun lessThan(value: DayTimeDuration): Boolean

Compare this dayTimeDuration value with another dayTimeDuration value.

Link copied to clipboard

Return an equivalent value with all fields normalized. The result value will have nanos < 1000000000, seconds < 60, minutes < 60, hours < 24. The result value will be {@link com.sap.cloud.mobile.kotlin.odata.DayTimeDuration#equal(com.sap.cloud.mobile.kotlin.odata.DayTimeDuration?, com.sap.cloud.mobile.kotlin.odata.DayTimeDuration?) DayTimeDuration.equal} to this value.

Link copied to clipboard
open fun notEqual(value: DayTimeDuration): Boolean

Compare this dayTimeDuration value with another dayTimeDuration value.

Link copied to clipboard
open fun toDecimal(): BigDecimal

Return duration expressed as decimal seconds with optional fraction.

Link copied to clipboard
open fun toDouble(): Double

Return duration expressed as seconds with double precision.

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

Convert this data value to a string. If the {@link com.sap.cloud.mobile.kotlin.odata.DayTimeDuration#dataType DayTimeDuration.dataType} is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).