GlobalDateTime

Represents the XML Schema dateTime type with 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 offset: 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: GlobalDateTime): 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: GlobalDateTime): Boolean

Compare this dateTime value with another dateTime value.

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

Compare this dateTime value with another dateTime value.

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

Return the difference this - value, measured in days.

Link copied to clipboard

Normalize this dateTime value to UTC. For example "2000-01-01T14:00:00+12:00" would normalize to "2000-01-01T02:00:00Z"

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

Compare this dateTime value with another dateTime value.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Link copied to clipboard

Convert to java.util.Date.

Link copied to clipboard

Convert to java.time.OffsetDateTime.

Link copied to clipboard

Return this local date and time portion of this value, without zone offset.

See Also:

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

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

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

Return a dateTime value with all fields the same as the current dateTime value except for the zone offset.