|
| static bool | pbl_time_is_weekday (enum pbl_weekday day) |
| | Check whether a day is a working day (Monday to Friday).
|
| |
| static bool | pbl_time_is_weekend (enum pbl_weekday day) |
| | Check whether a day is on the weekend (Saturday or Sunday).
|
| |
| bool | pbl_time_is_leap_year (int year) |
| | Check whether a Gregorian year is a leap year.
|
| |
| int | pbl_time_days_in_month (int month, bool is_leap_year) |
| | Get the number of days in a month.
|
| |
| void | pbl_time_split_seconds (uint32_t seconds, uint32_t *days, uint32_t *hours, uint32_t *minutes, uint32_t *secs) |
| | Split a duration into days, hours, minutes and seconds.
|
| |
| int | pbl_time_display_hour (int hour, bool is_24h) |
| | Convert an hour of the day to the hour shown on a clock.
|
| |
| int | pbl_time_minute_of_day_adjust (int minute, int delta) |
| | Add a delta to a minute of the day, wrapping around midnight.
|
| |
| void | pbl_time_breakdown (time_t t, struct pbl_tm *tm) |
| | Fill the calendar fields of a struct pbl_tm from seconds since the epoch.
|
| |
| struct pbl_tm * | pbl_gmtime_r (const time_t *timep, struct pbl_tm *result) |
| | Convert seconds since the epoch to broken-down UTC time.
|
| |
| time_t | pbl_mktime (struct pbl_tm *tb) |
| | Convert broken-down time to seconds since the epoch.
|
| |
| static pbl_time32_t | pbl_time_to_time32 (time_t t) |
| | Narrow a time to 32 bits.
|
| |
| time_t | pbl_time_from_time32 (pbl_time32_t t, time_t reference) |
| | Widen a 32-bit time.
|
| |