
Go to the source code of this file.
Macros | |
#define | RFC850_STRFTIME "%A, %d-%b-%y %H:%M:%S GMT" |
#define | RFC1123_STRFTIME "%a, %d %b %Y %H:%M:%S GMT" |
Functions | |
static int | make_month (const char *s) |
static int | make_num (const char *s) |
static int | tmSaneValues (struct tm *tm) |
static struct tm * | parse_date_elements (const char *day, const char *month, const char *year, const char *aTime, const char *zone) |
static struct tm * | parse_date (const char *str) |
time_t | parse_rfc1123 (const char *str) |
const char * | mkrfc1123 (time_t t) |
Variables | |
static const char * | month_names [12] |
Macro Definition Documentation
◆ RFC1123_STRFTIME
◆ RFC850_STRFTIME
Function Documentation
◆ make_month()
|
static |
Definition at line 47 of file rfc1123.c.
References month_names, xtolower, and xtoupper.
Referenced by parse_date_elements().
◆ make_num()
|
static |
Definition at line 38 of file rfc1123.c.
Referenced by parse_date_elements().
◆ mkrfc1123()
const char* mkrfc1123 | ( | time_t | t | ) |
Definition at line 202 of file rfc1123.c.
References buf, and RFC1123_STRFTIME.
Referenced by ErrorState::compileLegacyCode(), ErrorState::Dump(), DumpAvgStat(), DumpCountersStats(), DumpInfo(), gopherHTMLFooter(), main(), Adaptation::Icap::ModXact::makeRequestHeaders(), print_trailer(), HttpHeader::putTime(), and refreshCheck().
◆ parse_date()
|
static |
Definition at line 111 of file rfc1123.c.
References NULL, parse_date_elements(), xisdigit, and xstrncpy().
Referenced by parse_rfc1123().
◆ parse_date_elements()
|
static |
Definition at line 79 of file rfc1123.c.
References make_month(), make_num(), NULL, and tmSaneValues().
Referenced by parse_date().
◆ parse_rfc1123()
time_t parse_rfc1123 | ( | const char * | str | ) |
Definition at line 159 of file rfc1123.c.
References NULL, and parse_date().
Referenced by HttpHeader::getTime(), HttpHeader::getTimeOrTag(), and HttpReply::removeStaleWarningValues().
◆ tmSaneValues()
|
static |
Definition at line 63 of file rfc1123.c.
Referenced by parse_date_elements().
Variable Documentation
◆ month_names
|
static |
Definition at line 32 of file rfc1123.c.
Referenced by make_month().