Converts the specified Date object to an RFC 3339 date/time string using the specified time zone.
Converts the specified Date object to an RFC 3339 date/time string using the specified time zone.
the Date object
the time zone to use
an RFC 3339 date/time string (does not include milliseconds)
Converts the specified Calendar object to an RFC 3339 date/time string.
Converts the specified Calendar object to an RFC 3339 date/time string. Unlike the toString methods for Date and long, no additional variant of this method taking a time zone is provided since the time zone is built into the Calendar object.
the Calendar object
an RFC 3339 date/time string (does not include milliseconds)
Parses an RFC 3339 date/time string to a Calendar object.
Parses an RFC 3339 date/time string to a Calendar object.
the string to parse
the Calendar object
IllegalArgumentException
if the string is not a valid RFC 3339 date/time string
The Regex pattern to match.
This object handles Internet date/time strings in accordance with RFC 3339. It provides methods to convert from Calendar to RFC 3339 format strings and to parse these strings back into the same constructs. Strings are parsed in accordance with the RFC 3339 format:
The
tzd
represents the time zone designator and is either an upper or lower case 'Z' indicating UTC or a signedhh:mm
offset.https://www.ietf.org/rfc/rfc3339.txt
www.hackcraft.net/web/datetime