public class ZonelessDate extends ZonelessDatetime
| Modifier and Type | Field and Description |
|---|---|
protected Date |
tempDate |
internalTime, lastFormat, tempCal, tempFormatter| Constructor and Description |
|---|
ZonelessDate()
Constructs a ZonelessDate.
|
| Modifier and Type | Method and Description |
|---|---|
protected Date |
getTempDate(long value)
Gets a temporary Date object.
|
static ZonelessDate |
parse(String s)
Parses a string as a ZonelessDate.
|
static ZonelessDate |
parse(String s,
String format)
Parses a string as a ZonelessDate with a given format string.
|
void |
setZonedTime(long value,
TimeZone zone)
Sets this datetime via a zoned time value.
|
void |
setZonelessTime(long value)
Sets this datetime via a zoneless time value.
|
Object |
toJdbcObject()
Returns this datetime as a Jdbc object
|
String |
toString()
Converts this ZonelessDate to a java.sql.Date and formats it via the
toString() method of that class. |
String |
toString(String format)
Formats this ZonelessDate via a SimpleDateFormat.
|
clearDate, clearTime, getCalendar, getDateValue, getFormatter, getJdbcDate, getJdbcTime, getJdbcTimestamp, getTime, getTimeValueprotected transient Date tempDate
public void setZonelessTime(long value)
BasicDatetimesetZonelessTime in interface BasicDatetimesetZonelessTime in class ZonelessDatetimepublic void setZonedTime(long value,
TimeZone zone)
BasicDatetimesetZonedTime in interface BasicDatetimesetZonedTime in class ZonelessDatetimepublic Object toJdbcObject()
ZonelessDatetimetoJdbcObject in class ZonelessDatetimepublic String toString()
toString() method of that class.public String toString(String format)
format - Format string, as required by
SimpleDateFormatpublic static ZonelessDate parse(String s)
s - a string representing a date in ISO format, i.e. according to
the SimpleDateFormat string "yyyy-MM-dd"public static ZonelessDate parse(String s, String format)
s - a string representing a date in ISO format, i.e. according to
the SimpleDateFormat string "yyyy-MM-dd"format - Format string as per SimpleDateFormatprotected Date getTempDate(long value)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.