use of ucar.nc2.time.CalendarDate in project geotoolkit by Geomatys.
the class NetCDFUtils method parseTime.
public static long parseTime(final long l, final String unit) {
final CalendarDateUnit c = CalendarDateUnit.of("gregorian", unit);
final CalendarDate date = c.makeCalendarDate(l);
return date.getMillis();
}
Aggregations