FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
time_range.h File Reference
+ Include dependency graph for time_range.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clib_timebase_t
 
struct  clib_timebase_component_t
 
struct  clib_timebase_range_t
 

Enumerations

enum  clib_timebase_daylight_time_t { CLIB_TIMEBASE_DAYLIGHT_NONE = 0, CLIB_TIMEBASE_DAYLIGHT_USA }
 

Functions

void clib_timebase_init (clib_timebase_t *tb, i32 timezone_offset_in_hours, clib_timebase_daylight_time_t daylight_type)
 
void clib_timebase_time_to_components (f64 now, clib_timebase_component_t *cp)
 
f64 clib_timebase_components_to_time (clib_timebase_component_t *cp)
 
f64 clib_timebase_find_sunday_midnight (f64 start_time)
 
f64 clib_timebase_offset_from_sunday (u8 *day)
 
f64 clib_timebase_summer_offset (clib_timebase_t *tb, f64 now)
 
static f64 clib_timebase_summer_offset_fastpath (clib_timebase_t *tb, f64 now)
 
static f64 clib_timebase_now (clib_timebase_t *tb)
 
static int clib_timebase_is_leap_year (u32 year)
 

Variables

unformat_function_t unformat_clib_timebase_range_hms
 
unformat_function_t unformat_clib_timebase_range_vector
 
format_function_t format_clib_timebase_time
 

Enumeration Type Documentation

Enumerator
CLIB_TIMEBASE_DAYLIGHT_NONE 
CLIB_TIMEBASE_DAYLIGHT_USA 

Definition at line 22 of file time_range.h.

Function Documentation

f64 clib_timebase_components_to_time ( clib_timebase_component_t cp)

Definition at line 177 of file time_range.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

f64 clib_timebase_find_sunday_midnight ( f64  start_time)

Definition at line 213 of file time_range.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void clib_timebase_init ( clib_timebase_t tb,
i32  timezone_offset_in_hours,
clib_timebase_daylight_time_t  daylight_type 
)

Definition at line 19 of file time_range.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int clib_timebase_is_leap_year ( u32  year)
inlinestatic

Definition at line 104 of file time_range.h.

+ Here is the caller graph for this function:

static f64 clib_timebase_now ( clib_timebase_t tb)
inlinestatic

Definition at line 92 of file time_range.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

f64 clib_timebase_offset_from_sunday ( u8 day)

Definition at line 238 of file time_range.c.

+ Here is the caller graph for this function:

f64 clib_timebase_summer_offset ( clib_timebase_t tb,
f64  now 
)

Definition at line 383 of file time_range.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static f64 clib_timebase_summer_offset_fastpath ( clib_timebase_t tb,
f64  now 
)
inlinestatic

Definition at line 77 of file time_range.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void clib_timebase_time_to_components ( f64  now,
clib_timebase_component_t cp 
)

Definition at line 96 of file time_range.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

format_function_t format_clib_timebase_time

Definition at line 74 of file time_range.h.

unformat_function_t unformat_clib_timebase_range_hms

Definition at line 71 of file time_range.h.

unformat_function_t unformat_clib_timebase_range_vector

Definition at line 72 of file time_range.h.