FD.io VPP  v21.06-3-gbb25fbf28
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, clib_time_t *clib_time)
 
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

◆ clib_timebase_daylight_time_t

Enumerator
CLIB_TIMEBASE_DAYLIGHT_NONE 
CLIB_TIMEBASE_DAYLIGHT_USA 

Definition at line 22 of file time_range.h.

Function Documentation

◆ clib_timebase_components_to_time()

f64 clib_timebase_components_to_time ( clib_timebase_component_t cp)

Definition at line 185 of file time_range.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_timebase_find_sunday_midnight()

f64 clib_timebase_find_sunday_midnight ( f64  start_time)

Definition at line 221 of file time_range.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_timebase_init()

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

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:

◆ clib_timebase_is_leap_year()

static int clib_timebase_is_leap_year ( u32  year)
inlinestatic

Definition at line 100 of file time_range.h.

+ Here is the caller graph for this function:

◆ clib_timebase_now()

static f64 clib_timebase_now ( clib_timebase_t tb)
inlinestatic

Definition at line 88 of file time_range.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_timebase_offset_from_sunday()

f64 clib_timebase_offset_from_sunday ( u8 day)

Definition at line 246 of file time_range.c.

+ Here is the caller graph for this function:

◆ clib_timebase_summer_offset()

f64 clib_timebase_summer_offset ( clib_timebase_t tb,
f64  now 
)

Definition at line 391 of file time_range.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_timebase_summer_offset_fastpath()

static f64 clib_timebase_summer_offset_fastpath ( clib_timebase_t tb,
f64  now 
)
inlinestatic

Definition at line 73 of file time_range.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_timebase_time_to_components()

void clib_timebase_time_to_components ( f64  now,
clib_timebase_component_t cp 
)

Definition at line 104 of file time_range.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ format_clib_timebase_time

format_function_t format_clib_timebase_time

Definition at line 70 of file time_range.h.

◆ unformat_clib_timebase_range_hms

unformat_function_t unformat_clib_timebase_range_hms

Definition at line 67 of file time_range.h.

◆ unformat_clib_timebase_range_vector

unformat_function_t unformat_clib_timebase_range_vector

Definition at line 68 of file time_range.h.