Package | Description |
---|---|
ucar.nc2.time |
Calendar Date handling.
|
Modifier and Type | Method and Description |
---|---|
static CalendarPeriod.Field |
CalendarPeriod.fromUnitString(String udunit)
Convert a period string into a CalendarPeriod.Field.
|
CalendarPeriod.Field |
CalendarPeriod.getField() |
CalendarPeriod.Field |
CalendarDuration.getTimeUnit() |
static CalendarPeriod.Field |
CalendarPeriod.Field.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarPeriod.Field[] |
CalendarPeriod.Field.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
CalendarDate |
CalendarDate.add(double value,
CalendarPeriod.Field unit) |
int |
CalendarDate.getFieldValue(CalendarPeriod.Field fld) |
static CalendarDateUnit |
CalendarDateUnit.of(Calendar calt,
CalendarPeriod.Field periodField,
CalendarDate baseDate)
Create a CalendarDateUnit from a calendar, a CalendarPeriod.Field, and a base date
|
static CalendarPeriod |
CalendarPeriod.of(int value,
CalendarPeriod.Field field) |
CalendarDate |
CalendarDate.truncate(CalendarPeriod.Field fld)
truncate the CalendarDate, by zeroing all the fields that are less than the field.
|
Constructor and Description |
---|
CalendarDuration(int value,
CalendarPeriod.Field timeUnit) |
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.