FD.io VPP  v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
time_range.c File Reference
+ Include dependency graph for time_range.c:

Go to the source code of this file.

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)
 
u8format_clib_timebase_time (u8 *s, va_list *args)
 
uword unformat_clib_timebase_range_hms (unformat_input_t *input, va_list *args)
 
uword unformat_clib_timebase_range_vector (unformat_input_t *input, va_list *args)
 
f64 clib_timebase_summer_offset (clib_timebase_t *tb, f64 now)
 

Variables

static const u32 days_per_month []
 
static const char * month_short_names []
 
static const char * day_names_epoch_order []
 
static const char * day_names_calendar_order []
 

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:

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:

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:

u8* format_clib_timebase_time ( u8 s,
va_list *  args 
)

Definition at line 252 of file time_range.c.

+ Here is the call graph for this function:

uword unformat_clib_timebase_range_hms ( unformat_input_t input,
va_list *  args 
)

Definition at line 268 of file time_range.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_clib_timebase_range_vector ( unformat_input_t input,
va_list *  args 
)

Definition at line 308 of file time_range.c.

+ Here is the call graph for this function:

Variable Documentation

const char* day_names_calendar_order[]
static
Initial value:
= {
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
}

Definition at line 84 of file time_range.c.

const char* day_names_epoch_order[]
static
Initial value:
= {
"Thu",
"Fri",
"Sat",
"Sun",
"Mon",
"Tue",
"Wed",
}

Definition at line 74 of file time_range.c.

const u32 days_per_month[]
static
Initial value:
= {
31,
28,
31,
30,
31,
30,
31,
31,
30,
31,
30,
31,
}

Definition at line 44 of file time_range.c.

const char* month_short_names[]
static
Initial value:
= {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
}

Definition at line 59 of file time_range.c.