Classes | Macros | Enumerations | Functions | Variables
parsedate.c File Reference
#include "curl_setup.h"
#include <curl/curl.h>
#include "strcase.h"
#include "warnless.h"
#include "parsedate.h"
Include dependency graph for parsedate.c:

Go to the source code of this file.

Classes

struct  my_tm
 
struct  tzinfo
 

Macros

#define PARSEDATE_FAIL   -1
 
#define PARSEDATE_LATER   1
 
#define PARSEDATE_OK   0
 
#define PARSEDATE_SOONER   2
 
#define tDAYZONE   -60 /* offset for daylight savings time */
 

Enumerations

enum  assume { DATE_MDAY, DATE_YEAR, DATE_TIME }
 

Functions

static int checkday (const char *check, size_t len)
 
static int checkmonth (const char *check)
 
static int checktz (const char *check)
 
time_t curl_getdate (const char *p, const time_t *now)
 
CURLcode Curl_gmtime (time_t intime, struct tm *store)
 
static time_t my_timegm (struct my_tm *tm)
 
static int parsedate (const char *date, time_t *output)
 
static void skip (const char **date)
 

Variables

const char *const Curl_month []
 
const char *const Curl_wkday []
 
static const struct tzinfo tz []
 
static const char *const weekday []
 

Macro Definition Documentation

◆ PARSEDATE_FAIL

#define PARSEDATE_FAIL   -1

Definition at line 115 of file parsedate.c.

◆ PARSEDATE_LATER

#define PARSEDATE_LATER   1

Definition at line 116 of file parsedate.c.

◆ PARSEDATE_OK

#define PARSEDATE_OK   0

Definition at line 114 of file parsedate.c.

◆ PARSEDATE_SOONER

#define PARSEDATE_SOONER   2

Definition at line 117 of file parsedate.c.

◆ tDAYZONE

#define tDAYZONE   -60 /* offset for daylight savings time */

Definition at line 121 of file parsedate.c.

Enumeration Type Documentation

◆ assume

enum assume
Enumerator
DATE_MDAY 
DATE_YEAR 
DATE_TIME 

Definition at line 267 of file parsedate.c.

Function Documentation

◆ checkday()

static int checkday ( const char *  check,
size_t  len 
)
static

Definition at line 204 of file parsedate.c.

◆ checkmonth()

static int checkmonth ( const char *  check)
static

Definition at line 223 of file parsedate.c.

◆ checktz()

static int checktz ( const char *  check)
static

Definition at line 243 of file parsedate.c.

◆ curl_getdate()

time_t curl_getdate ( const char *  p,
const time_t *  now 
)

Definition at line 548 of file parsedate.c.

◆ Curl_gmtime()

CURLcode Curl_gmtime ( time_t  intime,
struct tm *  store 
)

Definition at line 570 of file parsedate.c.

◆ my_timegm()

static time_t my_timegm ( struct my_tm tm)
static

Definition at line 289 of file parsedate.c.

◆ parsedate()

static int parsedate ( const char *  date,
time_t *  output 
)
static

Definition at line 331 of file parsedate.c.

◆ skip()

static void skip ( const char **  date)
static

Definition at line 260 of file parsedate.c.

Variable Documentation

◆ Curl_month

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

Definition at line 92 of file parsedate.c.

◆ Curl_wkday

const char* const Curl_wkday[]
Initial value:
=
{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}

Definition at line 87 of file parsedate.c.

◆ tz

const struct tzinfo tz[]
static

Definition at line 122 of file parsedate.c.

◆ weekday

const char* const weekday[]
static
Initial value:
=
{ "Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday", "Sunday" }

Definition at line 89 of file parsedate.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sun May 15 2022 02:25:02