Classes | Defines | 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

Defines

#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 struct tzinfo tz []
static const char *const weekday []

Define Documentation

#define PARSEDATE_FAIL   -1

Definition at line 115 of file parsedate.c.

#define PARSEDATE_LATER   1

Definition at line 116 of file parsedate.c.

#define PARSEDATE_OK   0

Definition at line 114 of file parsedate.c.

#define PARSEDATE_SOONER   2

Definition at line 117 of file parsedate.c.

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

Definition at line 121 of file parsedate.c.


Enumeration Type Documentation

enum assume
Enumerator:
DATE_MDAY 
DATE_YEAR 
DATE_TIME 

Definition at line 267 of file parsedate.c.


Function Documentation

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

Definition at line 204 of file parsedate.c.

static int checkmonth ( const char *  check) [static]

Definition at line 223 of file parsedate.c.

static int checktz ( const char *  check) [static]

Definition at line 243 of file parsedate.c.

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

Definition at line 548 of file parsedate.c.

CURLcode Curl_gmtime ( time_t  intime,
struct tm *  store 
)

Definition at line 570 of file parsedate.c.

static time_t my_timegm ( struct my_tm tm) [static]

Definition at line 289 of file parsedate.c.

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

Definition at line 331 of file parsedate.c.

static void skip ( const char **  date) [static]

Definition at line 260 of file parsedate.c.


Variable Documentation

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.

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

Definition at line 87 of file parsedate.c.

struct tzinfo tz[] [static]

Definition at line 122 of file parsedate.c.

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

Definition at line 89 of file parsedate.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09