PickDateFormat enum
The format of the to-be-parsed String that will be converted to DateTime
Constructors
- PickDateFormat()
-
const
Values
- ISO_8601 → const PickDateFormat
-
ISO 8601 is the most common data time representation
https://www.w3.org/TR/NOTE-datetime
Also covers RFC-3339
Example:
2005-08-15T15:52:01+0000
- RFC_1123 → const PickDateFormat
-
A typical format used in the web that's not ISO8601
RFC-1123 (specifically RFC-5322 Section 3.3) based on RFC-822
Used as
- HTTP date header https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date, https://www.rfc-editor.org/rfc/rfc2616#section-3.3
- RSS2 pubDate, lastBuildDate https://validator.w3.org/feed/docs/rss2.html
Also matches RFC 1036, which is just a specific version of RFC 822.
Example:
Date: Wed, 21 Oct 2015 07:28:00 GMT
- ANSI_C_asctime → const PickDateFormat
-
The C language
asctime()
date format, used as legacy format by HTTP date headersSee https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date See https://www.rfc-editor.org/rfc/rfc2616#section-3.3
Example:
Sun Nov 6 08:49:37 1994
Fri Feb 15 14:45:01 2013
- RFC_850 → const PickDateFormat
-
A valid but rarely used format for HTTP date headers, and cookies
https://datatracker.ietf.org/doc/html/rfc850, obsolete by RFC 1036
Note in particular that ctime format is not acceptable
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date See https://www.rfc-editor.org/rfc/rfc2616#section-3.3
Format:
Weekday, DD-Mon-YY HH:MM:SS TIMEZONE
Example:
Thu Jan 1 00:00:00 1970
Sun, 6-Nov-94 08:49:37 GMT
Monday, 15-Aug-05 15:52:01 UTC
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PickDateFormat> - A constant List of the values in this enum, in order of their declaration.