FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ 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 177 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 213 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 
)

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 104 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 92 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 238 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 383 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 77 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 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_clib_timebase_time

format_function_t format_clib_timebase_time

Definition at line 74 of file time_range.h.

◆ unformat_clib_timebase_range_hms

unformat_function_t unformat_clib_timebase_range_hms

Definition at line 71 of file time_range.h.

◆ unformat_clib_timebase_range_vector

unformat_function_t unformat_clib_timebase_range_vector

Definition at line 72 of file time_range.h.