public final class WarcDateParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static Date |
getDate(String dateStr)
Parses the date using the format "yyyy-MM-ddTHH:mm:ssZ".
|
static DateFormat |
getDateFormat()
Return a
DateFormat object which can be used to string
format WARC dates. |
public static Date getDate(String dateStr)
dateStr - the date to parsenull based on whether the date
to parse is compliant with the format "yyyy-MM-ddTHH:mm:ssZ" or notpublic static DateFormat getDateFormat()
DateFormat object which can be used to string
format WARC dates.DateFormat object which can be used to string
format WARC dates.Copyright © 2011–2015. All rights reserved.