FD.io VPP  v21.01.1
Vector Packet Processing
time_range.c File Reference
+ Include dependency graph for time_range.c:

Go to the source code of this file.

Functions

__clib_export 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)
 
__clib_export void clib_timebase_time_to_components (f64 now, clib_timebase_component_t *cp)
 
__clib_export f64 clib_timebase_components_to_time (clib_timebase_component_t *cp)
 
__clib_export f64 clib_timebase_find_sunday_midnight (f64 start_time)
 
f64 clib_timebase_offset_from_sunday (u8 *day)
 
__clib_export u8format_clib_timebase_time (u8 *s, va_list *args)
 
uword unformat_clib_timebase_range_hms (unformat_input_t *input, va_list *args)
 
__clib_export uword unformat_clib_timebase_range_vector (unformat_input_t *input, va_list *args)
 
__clib_export 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

◆ clib_timebase_components_to_time()

__clib_export 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()

__clib_export 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()

__clib_export 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_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()

__clib_export 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_time_to_components()

__clib_export 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:

◆ format_clib_timebase_time()

__clib_export u8* format_clib_timebase_time ( u8 s,
va_list *  args 
)

Definition at line 260 of file time_range.c.

+ Here is the call graph for this function:

◆ unformat_clib_timebase_range_hms()

uword unformat_clib_timebase_range_hms ( unformat_input_t input,
va_list *  args 
)

Definition at line 276 of file time_range.c.

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

◆ unformat_clib_timebase_range_vector()

__clib_export uword unformat_clib_timebase_range_vector ( unformat_input_t input,
va_list *  args 
)

Definition at line 316 of file time_range.c.

+ Here is the call graph for this function:

Variable Documentation

◆ day_names_calendar_order

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

Definition at line 92 of file time_range.c.

◆ day_names_epoch_order

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

Definition at line 82 of file time_range.c.

◆ days_per_month

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

Definition at line 52 of file time_range.c.

◆ month_short_names

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

Definition at line 67 of file time_range.c.