public interface DateValued extends ScalarValued
TokenValued
object containing a date value.TokenTypeConstant#DATE
Modifier and Type | Method and Description |
---|---|
CalendarDate |
asCalendarDate()
Gets the contained date value.
|
Date |
asDate()
Deprecated.
since 6.1; use
asCalendarDate() instead
to obtain an object representation of the contained value. |
Date |
asDate(TimeZone tz)
Deprecated.
since 6.1; use
asCalendarDate() instead
to obtain an object representation of the contained value. |
long |
asEpochDays()
Gets the contained date value as the number of days since
Java epoch (January 1, 1970).
|
getType, isZero
isNull
@Deprecated Date asDate()
asCalendarDate()
instead
to obtain an object representation of the contained value.java.sql.Date
relative to the default time zone. The time zone used by
TimeZone.getDefault()
is used.java.sql.Date
.
If null valued, as indicated by TokenValued.isNull()
,
null
is returned.@Deprecated Date asDate(TimeZone tz)
asCalendarDate()
instead
to obtain an object representation of the contained value.java.sql.Date
relative to the given time zone.tz
- the time zone in which to interpret the datejava.sql.Date
.
If null valued, as indicated by TokenValued.isNull()
,
null
is returned.long asEpochDays()
TokenValued.isNull()
,
0
is returned.CalendarDate asCalendarDate()
TokenValued.isNull()
,
null
is returned.Copyright © 2024 Actian Corporation. All rights reserved.