Package ucar.nc2.units
Class DateFormatter
java.lang.Object
ucar.nc2.units.DateFormatter
Deprecated.
Date parsing and formatting. Always uses GMT.
These are not thread-safe.
These use java.util.Date and java.text.SimpleDateFormat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetISODate(String text) Deprecated.As of netCDF-JAVA 4.3.10.Deprecated.use toDateOnlyStringgetStandardDateString(Date date) getStandardDateString2(Date date) Deprecated.toDateOnlyString(Date date) Deprecated.toDateString(Date date) Deprecated.toDateTimeString(Date date) Deprecated.toDateTimeStringISO(Date date)
-
Constructor Details
-
DateFormatter
public DateFormatter()Deprecated.
-
-
Method Details
-
getISODate
Deprecated.As of netCDF-JAVA 4.3.10. UseCalendarDateFormatter.isoStringToDate(String)insteadParse the text in W3C profile of ISO 8601 format.- Parameters:
text- parse this text- Returns:
- equivalent Date or null if failure
- See Also:
-
getStandardDateOnlyString
Deprecated.use toDateOnlyStringReturn standard GMT date format; show date only, not time. Format = "yyyy-MM-dd" -
toDateString
Deprecated.date only format= yyyy-MM-dd -
toDateOnlyString
Deprecated.date only format= yyyy-MM-dd- Parameters:
date- format this date- Returns:
- date formatted as date only
-
getStandardDateString2
Deprecated.Return standard formatted GMT date and time String. Format = "yyyy-MM-dd HH:mm:ss'Z'" -
toDateTimeString
Deprecated."standard date format" = yyyy-MM-dd HH:mm:ssZ- Parameters:
date- format this date- Returns:
- date formatted as date/time
-
getStandardDateString
Return standard formatted GMT date and time String. Format = "yyyy-MM-dd'T'HH:mm:ss'Z'" -
toDateTimeStringISO
"ISO date format" = yyyy-MM-dd'T'HH:mm:ssZ- Parameters:
date- format this date- Returns:
- date formatted as ISO date string
-
CalendarDateFormatter