syslog-ng source
wallclocktime.h File Reference
#include "syslog-ng.h"
Include dependency graph for wallclocktime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WallClockTime
 

Macros

#define wct_year   tm.tm_year
 
#define wct_mon   tm.tm_mon
 
#define wct_mday   tm.tm_mday
 
#define wct_wday   tm.tm_wday
 
#define wct_yday   tm.tm_yday
 
#define wct_hour   tm.tm_hour
 
#define wct_min   tm.tm_min
 
#define wct_sec   tm.tm_sec
 
#define wct_isdst   tm.tm_isdst
 
#define WALL_CLOCK_TIME_INIT
 

Functions

guint32 wall_clock_time_iso_week_number (WallClockTime *wct)
 
void wall_clock_time_unset (WallClockTime *wct)
 
gchar * wall_clock_time_strptime (WallClockTime *wct, const gchar *format, const gchar *input)
 
size_t wall_clock_time_strftime (WallClockTime *wct, char *s, size_t n, const char *f)
 
void wall_clock_time_guess_missing_year (WallClockTime *self)
 
void wall_clock_time_guess_missing_fields (WallClockTime *self)
 

Macro Definition Documentation

◆ WALL_CLOCK_TIME_INIT

#define WALL_CLOCK_TIME_INIT
Value:
{ \
.tm = \
{ \
.tm_year = -1, \
.tm_mon = -1, \
.tm_mday = -1, \
.tm_wday = -1, \
.tm_yday = -1, \
.tm_hour = -1, \
.tm_min = -1, \
.tm_sec = -1, \
.tm_isdst = -1, \
}, \
.wct_gmtoff = -1, \
.wct_zone = NULL, \
.wct_usec = 0, \
}

◆ wct_hour

#define wct_hour   tm.tm_hour

◆ wct_isdst

#define wct_isdst   tm.tm_isdst

◆ wct_mday

#define wct_mday   tm.tm_mday

◆ wct_min

#define wct_min   tm.tm_min

◆ wct_mon

#define wct_mon   tm.tm_mon

◆ wct_sec

#define wct_sec   tm.tm_sec

◆ wct_wday

#define wct_wday   tm.tm_wday

◆ wct_yday

#define wct_yday   tm.tm_yday

◆ wct_year

#define wct_year   tm.tm_year

Function Documentation

◆ wall_clock_time_guess_missing_fields()

void wall_clock_time_guess_missing_fields ( WallClockTime *  self)

◆ wall_clock_time_guess_missing_year()

void wall_clock_time_guess_missing_year ( WallClockTime *  self)

◆ wall_clock_time_iso_week_number()

guint32 wall_clock_time_iso_week_number ( WallClockTime *  wct)

◆ wall_clock_time_strftime()

size_t wall_clock_time_strftime ( WallClockTime *  wct,
char *  s,
size_t  n,
const char *  f 
)

◆ wall_clock_time_strptime()

gchar* wall_clock_time_strptime ( WallClockTime *  wct,
const gchar *  format,
const gchar *  input 
)

◆ wall_clock_time_unset()

void wall_clock_time_unset ( WallClockTime *  wct)