@Immutable
public class TimeHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static TimeHelper |
factory(java.lang.String units,
AttributeContainer atts) |
Calendar |
getCalendar() |
CalendarDateUnit |
getCalendarDateUnit() |
static Calendar |
getCalendarFromAttribute(AttributeContainer atts) |
java.util.List<NamedObject> |
getCoordValueNames(CoverageCoordAxis1D axis)
Deprecated.
will be moved in ver6
|
CalendarDateRange |
getDateRange(double startValue,
double endValue) |
double |
getOffsetInTimeUnits(CalendarDate start,
CalendarDate end) |
CalendarDate |
getRefDate() |
java.lang.String |
getUdUnit() |
CalendarDate |
makeDate(double value) |
CalendarDate |
makeDateInTimeUnits(CalendarDate start,
double addTo) |
double |
offsetFromRefDate(CalendarDate date) |
TimeHelper |
setReferenceDate(CalendarDate refDate) |
public static TimeHelper factory(java.lang.String units, AttributeContainer atts)
public TimeHelper setReferenceDate(CalendarDate refDate)
public java.lang.String getUdUnit()
public double offsetFromRefDate(CalendarDate date)
@Deprecated public java.util.List<NamedObject> getCoordValueNames(CoverageCoordAxis1D axis)
public CalendarDate getRefDate()
public CalendarDate makeDate(double value)
public CalendarDateRange getDateRange(double startValue, double endValue)
public double getOffsetInTimeUnits(CalendarDate start, CalendarDate end)
public CalendarDate makeDateInTimeUnits(CalendarDate start, double addTo)
public static Calendar getCalendarFromAttribute(AttributeContainer atts)
public Calendar getCalendar()
public CalendarDateUnit getCalendarDateUnit()