public interface DateSupport
Modifier and Type | Method and Description |
---|---|
Date |
getDateFromISO8601String(String s)
Returns a java.util.Date from an ISO8601 compliant date string yyyy-MM-dd
|
Date |
getDateFromUTCString(String s)
Returns a java.util.Date from a UTC date string of the form yyyy-MM-dd'T'HH:mm:ss'Z'
|
String |
getISO8601FormattedString(Date date)
Returns an ISO8601 compliant date string as yyyy-MM-dd
|
long |
getMillisFromXSDateTimeString(String s)
Returns the time in milliseconds from a xs:dateTime string of the form yyyy-MM-dd'T'HH:mm:ss
|
Date |
getSQLDateFromISO8601String(String s)
Returns a java.sql.Date from an ISO8601 compliant date string yyyy-MM-dd
|
Date |
getSQLDateFromUTCString(String s)
Returns a java.sql.Date from a UTC date string of the form yyyy-MM-dd'T'HH:mm:ss'Z'
|
Timestamp |
getSQLTimestampFromXSDateTime(String s)
Returns a java.sql.Timestamp from a xs:dateTime string of the form yyyy-MM-dd'T'HH:mm:ss
|
String |
getUTFFormattedString(Date date)
Returns a UTC formatted date string as yyyy-MM-dd'T'HH:mm:ss'Z'
|
String getISO8601FormattedString(Date date)
date
- A java.util.Date objectDate getDateFromISO8601String(String s) throws ParseException
s
- String formatted in yyyy-MM-ddParseException
- if the date string is not parsable as ISO 8601Date getSQLDateFromISO8601String(String s) throws ParseException
s
- String formatted in yyyy-MM-ddParseException
- if the date string is not parsable as ISO 8601String getUTFFormattedString(Date date)
date
- A java.util.Date objectDate getDateFromUTCString(String s) throws ParseException
s
- String formatted as yyyy-MM-dd'T'HH:mm:ss'Z'ParseException
- if the date string is not parsable as ISO 8601Date getSQLDateFromUTCString(String s) throws ParseException
s
- String formatted as yyyy-MM-dd'T'HH:mm:ss'Z'ParseException
- if the date string is not parsable as ISO 8601Timestamp getSQLTimestampFromXSDateTime(String s) throws ParseException
s
- String formatted as yyyy-MM-dd'T'HH:mm:ssParseException
- if the date string is not parseable as xs:dateTimelong getMillisFromXSDateTimeString(String s) throws ParseException
s
- String formatted as yyyy-MM-dd'T'HH:mm:ssParseException
- if the date string is not parsable as xs:dateTimeCopyright © 2010–2016 AdroitLogic. All rights reserved.