EpcTools
An event based multi-threaded C++ development framework.
Functions
etime.cpp File Reference
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include "etypes.h"
#include "etime.h"

Functions

void cal_year_week (Int *year, Int *w, const struct tm *t)
 
size_t format_time_into_string (pStr st, size_t max_limit, cpStr type_format, struct tm *time_f, const struct timeval *tval)
 
pStr format_time_into_specs (cpStr time_format, const struct tm *t, pStr dest, cpStr max_limit, const struct timeval *p_timeval)
 
pStr convert_date_time_format (const Int n, cpStr date_time_format, pStr dest_buffer, cpStr max_dest_limit)
 
pStr add_timeformat_to_string (cpStr buffer, pStr dest_buffer, cpStr max_dest_limit)
 
time_t timegm (struct tm *t)
 
bool DateFromStr (cpStr strIn, struct timeval *ptvout, bool isLocal)
 

Function Documentation

◆ add_timeformat_to_string()

pStr add_timeformat_to_string ( cpStr  buffer,
pStr  dest_buffer,
cpStr  max_dest_limit 
)

◆ cal_year_week()

void cal_year_week ( Int *  year,
Int *  w,
const struct tm *  t 
)

◆ convert_date_time_format()

pStr convert_date_time_format ( const Int  n,
cpStr  date_time_format,
pStr  dest_buffer,
cpStr  max_dest_limit 
)

◆ DateFromStr()

bool DateFromStr ( cpStr  strIn,
struct timeval *  ptvout,
bool  isLocal 
)

◆ format_time_into_specs()

pStr format_time_into_specs ( cpStr  time_format,
const struct tm *  t,
pStr  dest,
cpStr  max_limit,
const struct timeval *  p_timeval 
)

◆ format_time_into_string()

size_t format_time_into_string ( pStr  st,
size_t  max_limit,
cpStr  type_format,
struct tm *  time_f,
const struct timeval *  tval 
)

◆ timegm()

time_t timegm ( struct tm *  t)