public class NetCDFTimeUtilities extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
DAY_SET |
static Set<String> |
HOUR_SET |
static int |
JGREG |
static Set<String> |
MINUTE_SET |
static Set<String> |
MONTH_SET |
static Set<String> |
SECOND_SET |
static TimeZone |
UTC_TIMEZONE |
Modifier and Type | Method and Description |
---|---|
static void |
addTimeUnit(Calendar cal,
int unit,
int val)
Add a quantity of time units to a Calendar
|
static void |
addTimeUnit(Calendar cal,
int unit,
long val)
Add a quantity of time units to a Calendar
|
static String |
checkDateDigits(String origin) |
static GregorianCalendar |
fromJulian(double injulian) |
static int |
getTimeSubUnitsValue(String units,
Double vd) |
static int |
getTimeUnits(String units,
Double vd)
Converts NetCDF time units into opportune Calendar ones.
|
static String |
trimFractionalPart(String value) |
public static final int JGREG
public static final TimeZone UTC_TIMEZONE
public static GregorianCalendar fromJulian(double injulian)
public static int getTimeUnits(String units, Double vd)
units
- String
d
- public static String trimFractionalPart(String value)
value
- public static void addTimeUnit(Calendar cal, int unit, int val)
cal
- Calendar to add tounit
- Calendar unit to addval
- Quantity of unit to addpublic static void addTimeUnit(Calendar cal, int unit, long val)
cal
- Calendar to add tounit
- Calendar unit to addval
- Quantity of TimeUnit to addCopyright © 1996–2019 Geotools. All rights reserved.