LocalDateTime

Represents the XML Schema dateTime 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 date: LocalDate
Link copied to clipboard
open val day: Int
Link copied to clipboard
open val dayOfWeek: Int
Link copied to clipboard
open val dayOfYear: Int
Link copied to clipboard
open val hour: Int
Link copied to clipboard
open val minute: Int
Link copied to clipboard
open val month: Int
Link copied to clipboard
open val nano: Int
Link copied to clipboard
open val second: Int
Link copied to clipboard
open val time: LocalTime
Link copied to clipboard
open val year: Int

Functions

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

Compare this dateTime with another dateTime.

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

Link copied to clipboard

Compare this dateTime value with another dateTime value.

Link copied to clipboard

Compare this dateTime value with another dateTime 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: LocalDateTime): Boolean

Compare this dateTime value with another dateTime value.

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

Compare this dateTime value with another dateTime value.

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

Return the difference this - value, measured in days.

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

Compare this dateTime value with another dateTime value.

Link copied to clipboard
open fun plusDays(days: Int): LocalDateTime

Return a new dateTime which is the specified number of days ahead of this dateTime.

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

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

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

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

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

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

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

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

Link copied to clipboard
open fun plusMonths(months: Int): LocalDateTime

Return a new dateTime which is the specified number of months ahead of this dateTime.

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

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

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

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

Link copied to clipboard
open fun plusWeeks(weeks: Int): LocalDateTime

Return a new dateTime which is the specified number of weeks ahead of this dat/timee.

Link copied to clipboard
open fun plusYears(years: Int): LocalDateTime

Return a new dateTime which is the specified number of years ahead of this dateTime.

Link copied to clipboard
open fun toGlobal(offset: Int): GlobalDateTime

Return this value converted to a global date and time, with specified offset.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.GlobalDateTime#normalize() GlobalDateTime.normalize}.

Link copied to clipboard

Convert to java.time.LocalDateTime.

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