public class DateFormatter
extends java.lang.Object
Constructor and Description |
---|
DateFormatter() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getISODate(java.lang.String text)
Deprecated.
As of netCDF-JAVA 4.3.10. Use
CalendarDateFormatter.isoStringToDate(String) instead |
java.lang.String |
getStandardDateOnlyString(java.util.Date date)
Deprecated.
use toDateOnlyString
|
java.lang.String |
getStandardDateString(java.util.Date date)
Deprecated.
use toDateTimeStringISO
|
java.lang.String |
getStandardDateString2(java.util.Date date)
Deprecated.
use toDateTimeString
|
static void |
main(java.lang.String[] args)
test
|
java.lang.String |
toDateOnlyString(java.util.Date date)
date only format= yyyy-MM-dd
|
java.lang.String |
toDateString(java.util.Date date)
Deprecated.
use toDateOnlyString
|
java.lang.String |
toDateTimeString(java.util.Date date)
"standard date format" = yyyy-MM-dd HH:mm:ssZ
|
java.lang.String |
toDateTimeStringISO(java.util.Date date)
"ISO date format" = yyyy-MM-dd'T'HH:mm:ssZ
|
@Deprecated public java.util.Date getISODate(java.lang.String text)
CalendarDateFormatter.isoStringToDate(String)
insteadtext
- parse this textpublic java.lang.String getStandardDateOnlyString(java.util.Date date)
public java.lang.String toDateString(java.util.Date date)
public java.lang.String toDateOnlyString(java.util.Date date)
date
- format this datepublic java.lang.String getStandardDateString2(java.util.Date date)
public java.lang.String toDateTimeString(java.util.Date date)
date
- format this datepublic java.lang.String getStandardDateString(java.util.Date date)
public java.lang.String toDateTimeStringISO(java.util.Date date)
date
- format this datepublic static void main(java.lang.String[] args)