PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
time_utils.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
Include dependency graph for time_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _time_zone_t
 

Functions

void _time_zone_init (void)
 
_time_zone_t_time_zone (void)
 
bool _time_is_leap_year (int32_t year)
 
int32_t _time_days_in_month (int32_t month, int32_t year)
 
void _time_normalize (struct tm *timePtr)
 
void _time_day_of_week (struct tm *timePtr)
 
void _time_day_of_year (struct tm *timePtr)
 

Function Documentation

◆ _time_zone_init()

void _time_zone_init ( void  )
Todo:
Load time zone from a configuration file.

Definition at line 5 of file time_utils.c.

Here is the caller graph for this function:

◆ _time_zone()

_time_zone_t * _time_zone ( void  )

Definition at line 13 of file time_utils.c.

Here is the caller graph for this function:

◆ _time_is_leap_year()

bool _time_is_leap_year ( int32_t  year)

Definition at line 22 of file time_utils.c.

Here is the caller graph for this function:

◆ _time_days_in_month()

int32_t _time_days_in_month ( int32_t  month,
int32_t  year 
)

Definition at line 27 of file time_utils.c.

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

◆ _time_normalize()

void _time_normalize ( struct tm timePtr)

Definition at line 36 of file time_utils.c.

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

◆ _time_day_of_week()

void _time_day_of_week ( struct tm timePtr)

Definition at line 103 of file time_utils.c.

Here is the caller graph for this function:

◆ _time_day_of_year()

void _time_day_of_year ( struct tm timePtr)

Definition at line 122 of file time_utils.c.

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