Package de.uplanet.util
Klasse DateParser
java.lang.Object
de.uplanet.util.DateParser
-
Feldübersicht
Felder -
Methodenübersicht
-
Felddetails
-
UTC_ISO_DATE_TIME_FORMAT
yyyy-MM-dd'T'HH:mm:ss'Z'.- Siehe auch:
-
-
Methodendetails
-
parseDate
Parse a string as a date, using the given format, time zone, and theLocale.USlocale.- Parameter:
p_strValue- The serialized date-time value.p_strFormat- The format used for parsing.p_tz- The timezone to be used for parsing.- Gibt zurück:
- The parsed date.
- Löst aus:
IllegalArgumentException- If any of the given parameters isnull.
-
parseDate
Parse a string as an UTC date, or as a date with time zone offset.Valid formats are
yyyy-MM-dd'T'HH:mm:ss'Z'(UTC)yyyy-MM-dd'T'HH:mm:ssZ(with RFC 822 time zone offset)
SimpleDateFormat.- Parameter:
p_strValue- The serialized date-time value.- Gibt zurück:
- The parsed date.
- Löst aus:
ParseException- If the given string could not be parsed as a date-time value.IllegalArgumentException- If p_strValue isnull.
-