public enum As2DateUtil extends Enum<As2DateUtil>
RFC-4130 references RFC-2045, which references RFC-1123, which references good old RFC-822.
date-time = [ day "," ] date time ; dd mm yy
; hh:mm:ss zzz
day = "Mon" / "Tue" / "Wed" / "Thu"
/ "Fri" / "Sat" / "Sun"
date = 1*2DIGIT month 4DIGIT ; day month year(4 digits)
; e.g. 20 Jun 82
month = "Jan" / "Feb" / "Mar" / "Apr"
/ "May" / "Jun" / "Jul" / "Aug"
/ "Sep" / "Oct" / "Nov" / "Dec"
time = hour zone ; ANSI and Military
hour = 2DIGIT ":" 2DIGIT [":" 2DIGIT]
; 00:00:00 - 23:59:59
zone = "UT" / "GMT" ; Universal Time
; North American : UT
/ "EST" / "EDT" ; Eastern: - 5/ - 4
/ "CST" / "CDT" ; Central: - 6/ - 5
/ "MST" / "MDT" ; Mountain: - 7/ - 6
/ "PST" / "PDT" ; Pacific: - 8/ - 7
/ 1ALPHA ; Military: Z = UT;
; A:-1; (J not used)
; M:-12; N:+1; Y:+12
/ ( ("+" / "-") 4DIGIT ) ; Local differential
; hours+min. (HHMM)
| Modifier and Type | Method and Description |
|---|---|
String |
format(Date d) |
Date |
parse(String s) |
static As2DateUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static As2DateUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final As2DateUtil RFC822
public static final As2DateUtil ISO8601
public static As2DateUtil[] values()
for (As2DateUtil c : As2DateUtil.values()) System.out.println(c);
public static As2DateUtil valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022 NorStella. All rights reserved.