public interface DateService
Modifier and Type | Method and Description |
---|---|
String |
cDateFormat() |
String |
cDateFormat(Date date) |
Date |
cDateParse(String toParse) |
String |
iso8601DateFormat() |
String |
iso8601DateFormat(Date date) |
Date |
iso8601DateOrSecondsDateParse(String toParse)
Parse a given date in either of two iso8601 formats:
"yyyy-MM-dd'T'HH:mm:ssZ" or "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
|
Date |
iso8601DateParse(String toParse) |
String |
iso8601SecondsDateFormat() |
String |
iso8601SecondsDateFormat(Date dateTime) |
Date |
iso8601SecondsDateParse(String toParse) |
String |
rfc1123DateFormat() |
String |
rfc1123DateFormat(Date date) |
Date |
rfc1123DateParse(String toParse) |
String |
rfc822DateFormat() |
String |
rfc822DateFormat(Date date) |
Date |
rfc822DateParse(String toParse) |
String cDateFormat()
Date cDateParse(String toParse) throws IllegalArgumentException
toParse
- text to parseIllegalArgumentException
- if the input is invalidString rfc822DateFormat()
Date rfc822DateParse(String toParse) throws IllegalArgumentException
toParse
- text to parseIllegalArgumentException
- if the input is invalidString iso8601SecondsDateFormat()
String iso8601DateFormat()
Date iso8601DateParse(String toParse) throws IllegalArgumentException
toParse
- text to parseIllegalArgumentException
- if the input is invalidDate iso8601SecondsDateParse(String toParse) throws IllegalArgumentException
toParse
- text to parseIllegalArgumentException
- if the input is invalidDate iso8601DateOrSecondsDateParse(String toParse) throws IllegalArgumentException
toParse
- The string to parse.IllegalArgumentException
String rfc1123DateFormat()
Date rfc1123DateParse(String toParse) throws IllegalArgumentException
toParse
- text to parseIllegalArgumentException
- if the input is invalidCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.