LocalTime

open class LocalTime : DataValue

Represents the XML Schema time type without zone offset.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val dataType: DataType
Link copied to clipboard
open val hour: Int
Link copied to clipboard
open val minute: Int
Link copied to clipboard
open val nano: Int
Link copied to clipboard
open val second: Int

Functions

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

Compare this time with another time.

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 time value with another time value.

Link copied to clipboard
open fun greaterEqual(value: LocalTime): Boolean

Compare this time value with another time value.

Link copied to clipboard
open fun greaterThan(value: LocalTime): Boolean

Compare this time value with another time value.

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

Hash this data value to a number.

Link copied to clipboard
open fun lessEqual(value: LocalTime): Boolean

Compare this time value with another time value.

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

Compare this time value with another time value.

Link copied to clipboard
open fun minus(value: LocalTime): Double

Return the difference this - value, measured in days.

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

Compare this time value with another time value.

Link copied to clipboard
open fun plusHours(hours: Long): LocalTime

Return a new time which is the specified number of hours ahead of this time.

Link copied to clipboard
open fun plusMicros(micros: Long): LocalTime

Return a new time which is the specified number of microseconds ahead of this time.

Link copied to clipboard
open fun plusMillis(millis: Long): LocalTime

Return a new time which is the specified number of milliseconds ahead of this time.

Link copied to clipboard
open fun plusMinutes(minutes: Long): LocalTime

Return a new time which is the specified number of minutes ahead of this time.

Link copied to clipboard
open fun plusNanos(nanos: Long): LocalTime

Return a new time which is the specified number of nanoseconds ahead of this time.

Link copied to clipboard
open fun plusSeconds(seconds: Long): LocalTime

Return a new time which is the specified number of seconds ahead of this time.

Link copied to clipboard

Convert to java.time.LocalTime.

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.LocalTime#dataType LocalTime.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).