Inheritance diagram for Rfc1123:
Static Public Member Functions | |
static char[] | format (char[] buffer, ulong time) |
static ulong | parse (char[] date, uint *ate=null) |
Static Private Member Functions | |
static int | rfc1123 (char[] src, inout ulong value) |
static int | rfc850 (char[] src, inout ulong value) |
static int | asctime (char[] src, inout ulong value) |
static bool | time (inout Fields fields, inout char *p) |
static int | parseMonth (inout char *p) |
static int | parseShortDay (inout char *p) |
static int | parseFullDay (inout char *p) |
static int | parseInt (inout char *p) |
static ulong | startTime () |
Private Attributes | |
const ulong | InvalidEpoch = -1 |
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html for further detail.
Definition at line 62 of file Rfc1123.d.
|
RFC 1123 formatted time Converts to the format "Sun, 06 Nov 1994 08:49:37 GMT", and returns a populated slice of the provided buffer; with zero length if the date was invalid. Note that RFC 1123 format is always in absolute GMT time. A 40-element buffer is sufficient for the longest string. Definition at line 78 of file Rfc1123.d. References buffer. |
|
Parse provided input and return a UTC epoch time. A return value of InvalidEpoch indicated a parse-failure. An option is provided to return the count of characters parsed ~ a zero value here also indicates invalid input. |
|
RFC 822, updated by RFC 1123 "Sun, 06 Nov 1994 08:49:37 GMT" Definition at line 139 of file Rfc1123.d. References parseInt(), parseMonth(), parseShortDay(), and time(). Referenced by parse(). |
|
RFC 850, obsoleted by RFC 1036 "Sunday, 06-Nov-94 08:49:37 GMT" Definition at line 178 of file Rfc1123.d. References parseFullDay(), parseInt(), parseMonth(), and time(). Referenced by parse(). |
|
ANSI C's asctime() format "Sun Nov 6 08:49:37 1994" Definition at line 223 of file Rfc1123.d. References parseInt(), parseMonth(), parseShortDay(), and time(). Referenced by parse(). |
|
Parse a time field Definition at line 260 of file Rfc1123.d. References parseInt(). |
|
Match a month from the input |
|
Match a day from the input |
|
Match a day from the input Definition at line 373 of file Rfc1123.d. References memcmp(). Referenced by rfc850(). |
|
Extract an integer from the input |
|
Utc time this executable started Definition at line 356 of file Epoch.d. References Epoch::startTime(). Referenced by Epoch::startTime(). |
|
|