public interface BasicDatetime
A zoneless time is based on milliseconds. It may contain date and/or time components as follows:
The time component = value % milliseconds in a day The date component = value / milliseconds in a dayIf a date component is specified, it is relative to the epoch (1970-01-01).
A zoned time represents a time that was created in a particular time zone.
It may contain date and/or time components that are valid when interpreted
relative to a specified time zone, according to a
Calendar. Jdbc types, such as
Date typically contain zoned times.
| Modifier and Type | Method and Description |
|---|---|
long |
getTime()
Gets the internal value of this datetime
|
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.
|
long getTime()
void setZonelessTime(long value)
void setZonedTime(long value,
TimeZone zone)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.