Apache HTTPD
Classes | Functions | Variables
testdate.c File Reference
#include "abts.h"
#include "testutil.h"
#include "apr_date.h"
#include "apr_general.h"

Go to the source code of this file.

Classes

struct  datetest
 

Functions

static void gm_timestr_822 (char *ts, apr_time_t sec)
 
static apr_uint32_t lgc (apr_uint32_t a)
 
static void test_date_parse_http (abts_case *tc, void *data)
 
static void test_date_rfc (abts_case *tc, void *data)
 
abts_suitetestdate (abts_suite *suite)
 

Variables

static struct datetest tests []
 
static const apr_time_t year2secs []
 
const char month_snames [12][4]
 

Function Documentation

◆ gm_timestr_822()

static void gm_timestr_822 ( char ts,
apr_time_t  sec 
)
static

Definition at line 119 of file testdate.c.

◆ lgc()

static apr_uint32_t lgc ( apr_uint32_t  a)
static

Definition at line 134 of file testdate.c.

◆ test_date_parse_http()

static void test_date_parse_http ( abts_case tc,
void *  data 
)
static

Definition at line 142 of file testdate.c.

◆ test_date_rfc()

static void test_date_rfc ( abts_case tc,
void *  data 
)
static

Definition at line 176 of file testdate.c.

◆ testdate()

abts_suite * testdate ( abts_suite suite)

Definition at line 194 of file testdate.c.

Variable Documentation

◆ month_snames

const char month_snames[12][4]
Initial value:
= {
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"
}

Definition at line 114 of file testdate.c.

◆ tests

struct datetest tests[]
static
Initial value:
= {
{ "Mon, 27 Feb 1995 20:49:44 -0800", "Tue, 28 Feb 1995 04:49:44 GMT" },
{ "Fri, 1 Jul 2005 11:34:25 -0400", "Fri, 01 Jul 2005 15:34:25 GMT" },
{ "Monday, 27-Feb-95 20:49:44 -0800", "Tue, 28 Feb 1995 04:49:44 GMT" },
{ "Tue, 4 Mar 1997 12:43:52 +0200", "Tue, 04 Mar 1997 10:43:52 GMT" },
{ "Mon, 27 Feb 95 20:49:44 -0800", "Tue, 28 Feb 1995 04:49:44 GMT" },
{ "Tue, 4 Mar 97 12:43:52 +0200", "Tue, 04 Mar 1997 10:43:52 GMT" },
{ "Tue, 4 Mar 97 12:43:52 +0200", "Tue, 04 Mar 1997 10:43:52 GMT" },
{ "Mon, 27 Feb 95 20:49 GMT", "Mon, 27 Feb 1995 20:49:00 GMT" },
{ "Tue, 4 Mar 97 12:43 GMT", "Tue, 04 Mar 1997 12:43:00 GMT" },
{ NULL, NULL }
}
return NULL
Definition mod_so.c:359

◆ year2secs

const apr_time_t year2secs[]
static

Definition at line 42 of file testdate.c.