Package ucar.nc2.units
Class DateFormatter
- java.lang.Object
-
- ucar.nc2.units.DateFormatter
-
@Deprecated public class DateFormatter extends Object
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 Constructor Description DateFormatter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Date
getISODate(String text)
Deprecated.As of netCDF-JAVA 4.3.10.String
getStandardDateOnlyString(Date date)
Deprecated.use toDateOnlyStringString
getStandardDateString(Date date)
String
getStandardDateString2(Date date)
Deprecated.String
toDateOnlyString(Date date)
Deprecated.String
toDateString(Date date)
Deprecated.String
toDateTimeString(Date date)
Deprecated.String
toDateTimeStringISO(Date date)
-
-
-
Method Detail
-
getISODate
@Deprecated public Date getISODate(String text)
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:
- W3C profile of ISO 8601
-
getStandardDateOnlyString
public String getStandardDateOnlyString(Date date)
Deprecated.use toDateOnlyStringReturn standard GMT date format; show date only, not time. Format = "yyyy-MM-dd"
-
toDateString
@Deprecated public String toDateString(Date date)
Deprecated.date only format= yyyy-MM-dd
-
toDateOnlyString
@Deprecated public String toDateOnlyString(Date date)
Deprecated.date only format= yyyy-MM-dd- Parameters:
date
- format this date- Returns:
- date formatted as date only
-
getStandardDateString2
@Deprecated public String getStandardDateString2(Date date)
Deprecated.Return standard formatted GMT date and time String. Format = "yyyy-MM-dd HH:mm:ss'Z'"
-
toDateTimeString
@Deprecated public String toDateTimeString(Date date)
Deprecated."standard date format" = yyyy-MM-dd HH:mm:ssZ- Parameters:
date
- format this date- Returns:
- date formatted as date/time
-
getStandardDateString
@Deprecated public String getStandardDateString(Date date)
Return standard formatted GMT date and time String. Format = "yyyy-MM-dd'T'HH:mm:ss'Z'"
-
toDateTimeStringISO
@Deprecated public String toDateTimeStringISO(Date date)
"ISO date format" = yyyy-MM-dd'T'HH:mm:ssZ- Parameters:
date
- format this date- Returns:
- date formatted as ISO date string
-
-