MySQL 8.0.39
Source Code Documentation
http_time.cc File Reference
#include <array>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <map>
#include <iostream>
#include <stdexcept>
#include "mysqlrouter/http_request.h"

Functions

int time_to_rfc5322_fixdate (time_t ts, char *date_buf, size_t date_buf_len)
 convert time_t into a Date: header value. More...
 
static time_t time_from_struct_tm_utc (struct tm *t_m)
 
time_t time_from_rfc5322_fixdate (const char *date_buf)
 convert a Date: header into a time_t. More...
 

Function Documentation

◆ time_from_rfc5322_fixdate()

time_t time_from_rfc5322_fixdate ( const char *  date_buf)

convert a Date: header into a time_t.

Returns
a time_t representation of Date: header value
Exceptions
std::out_of_rangeon invalid formats

◆ time_from_struct_tm_utc()

static time_t time_from_struct_tm_utc ( struct tm *  t_m)
static

◆ time_to_rfc5322_fixdate()

int time_to_rfc5322_fixdate ( time_t  ts,
char *  date_buf,
size_t  date_buf_len 
)

convert time_t into a Date: header value.