Class StdDateFormat

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class StdDateFormat
    extends DateFormat
    Default DateFormat implementation used by standard Date serializers and deserializers. For serialization defaults to using an ISO-8601 compliant format (format String "yyyy-MM-dd'T'HH:mm:ss.SSSZ") and for deserialization, both ISO-8601 and RFC-1123.
    See Also:
    Serialized Form
    • Field Detail

      • instance

        public static final StdDateFormat instance
        A singleton instance can be used for cloning purposes.
    • Constructor Detail

      • StdDateFormat

        public StdDateFormat()
    • Method Detail

      • getBlueprintISO8601Format

        public static DateFormat getBlueprintISO8601Format()
        Method for getting the globally shared DateFormat instance that uses GMT timezone and can handle simple ISO-8601 compliant date format.
      • getISO8601Format

        public static DateFormat getISO8601Format​(TimeZone tz)
        Method for getting a non-shared DateFormat instance that uses specified timezone and can handle simple ISO-8601 compliant date format.
      • getBlueprintRFC1123Format

        public static DateFormat getBlueprintRFC1123Format()
        Method for getting the globally shared DateFormat instance that uses GMT timezone and can handle RFC-1123 compliant date format.
      • getRFC1123Format

        public static DateFormat getRFC1123Format​(TimeZone tz)
        Method for getting a non-shared DateFormat instance that uses specific timezone and can handle RFC-1123 compliant date format.
      • looksLikeISO8601

        protected boolean looksLikeISO8601​(String dateStr)
        Overridable helper method used to figure out which of supported formats is the likeliest match.