public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static Date |
calendarDateToDate(CalendarDate calDate)
Convert a CalendarDate object to java.util.Date.
|
static Date |
dateAndTimeToDate(DateAndTime dateAndTime)
Convert a DateAndTime object to Date.
|
static Date |
getDateFromString(String dateString)
Returns a Date object from an ISO-8601 representation string.
|
static long |
getTimeInMillis(String periodDuration)
Return a Date (long time) from a String description
|
static String |
getTimeZone(String dateString) |
static Unit |
getUnitFromDuration(Duration duration)
This method returns the nearest Unit of a Duration.
|
static Date |
JulianToDate(JulianDate jdt)
Convert a JulianDate to Date
|
static Date |
ordinalToDate(OrdinalPosition ordinalPosition) |
static Date |
temporalCoordToDate(TemporalCoordinate temporalCoord)
Convert a TemporalCoordinate object to Date.
|
public static Date getDateFromString(String dateString) throws ParseException
dateString
- ParseException
public static long getTimeInMillis(String periodDuration)
periodDuration
- public static Date JulianToDate(JulianDate jdt)
public static Date calendarDateToDate(CalendarDate calDate)
calDate
- public static Date dateAndTimeToDate(DateAndTime dateAndTime)
dateAndTime
- public static Date temporalCoordToDate(TemporalCoordinate temporalCoord)
temporalCoord
- public static Date ordinalToDate(OrdinalPosition ordinalPosition)
public static Unit getUnitFromDuration(Duration duration)
Copyright © 1996–2019 Geotools. All rights reserved.