public class DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime
| Constructor and Description |
|---|
DefaultDateAndTime(TemporalReferenceSystem frame,
IndeterminateValue indeterminatePosition,
InternationalString calendarEraName,
int[] calendarDate,
Number[] clockTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int[] |
getCalendarDate()
Provides a sequence of integers in which the first integer identifies a specific instance of
the unit used at the highest level of the calendar hierarchy, the second integer identifies a
specific instance of the unit used at the next lower level in the hierarchy, and so on.
|
InternationalString |
getCalendarEraName()
Provides the name of the calendar era to which the date is
referenced.
|
Number[] |
getClockTime()
A sequence of numbers with a structure similar to that of
CalendarDate. |
int |
hashCode() |
void |
setCalendarDate(int[] calendarDate) |
void |
setCalendarEraName(InternationalString calendarEraName) |
void |
setClockTime(Number[] clockTime) |
String |
toString() |
getFrame, getIndeterminatePosition, setFrame, setIndeterminatePositiongetIndeterminatePositionpublic DefaultDateAndTime(TemporalReferenceSystem frame, IndeterminateValue indeterminatePosition, InternationalString calendarEraName, int[] calendarDate, Number[] clockTime)
public Number[] getClockTime()
CalendarDate. The first number integer identifies a specific instance of the unit used at
the highest level of the clock hierarchy, the second number identifies a specific instance of
the unit used at the next lower level, and so on. All but the last number in the sequence
shall be integers; the last number may be integer or real.getClockTime in interface ClockTimepublic InternationalString getCalendarEraName()
CalendarDategetCalendarEraName in interface CalendarDatepublic int[] getCalendarDate()
getCalendarDate in interface CalendarDatepublic void setCalendarEraName(InternationalString calendarEraName)
public void setCalendarDate(int[] calendarDate)
public void setClockTime(Number[] clockTime)
public boolean equals(Object object)
equals in class DefaultTemporalPositionpublic int hashCode()
hashCode in class DefaultTemporalPositionpublic String toString()
toString in class DefaultTemporalPositionCopyright © 1996–2019 Geotools. All rights reserved.