LocalDate

open class LocalDate : DataValue

Represents the XML Schema date 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 day: Int
Link copied to clipboard
open val dayOfWeek: Int
Link copied to clipboard
open val dayOfYear: Int
Link copied to clipboard
open val month: Int
Link copied to clipboard
open val year: Int

Functions

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

Compare this date with another date.

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

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

Compare this date value with another date value.

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

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

Compare this date value with another date value.

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

Compare this date value with another date value.

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

Return the difference this - value, measured in days.

Link copied to clipboard
open fun monthEnd(): LocalDate

Return the ending date of the month including this date.

Link copied to clipboard
open fun monthStart(): LocalDate

Return the starting date of the month including this date.

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

Compare this date value with another date value.

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

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

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

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

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

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

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

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

Link copied to clipboard

Convert to java.util.Date.

Link copied to clipboard

Convert to java.time.LocalDate.

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.LocalDate#dataType LocalDate.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 weekEnd(): LocalDate
open fun weekEnd(endingDay: Int): LocalDate

Return the ending date of the week including this date.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DayOfWeek}.

Link copied to clipboard
open fun weekStart(): LocalDate
open fun weekStart(startingDay: Int): LocalDate

Return the starting date of the week including this date.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DayOfWeek}.

Link copied to clipboard
open fun yearEnd(): LocalDate

Return the ending date (December 31) of the year including this date.

Link copied to clipboard
open fun yearStart(): LocalDate

Return the starting date (January 1) of the year including this date.