This commit is contained in:
RogueMaster
2022-11-17 23:44:44 -05:00
parent 699819dd0f
commit c3273fcf49
31 changed files with 989 additions and 131 deletions

View File

@@ -2,5 +2,17 @@
#include <inttypes.h>
/**
* @brief Calculates timezone offset in seconds given timezone offset in hours.
* @param hours timezone offset in hours
* @return Timezone offset in seconds.
*/
int32_t timezone_offset_from_hours(float hours);
/**
* @brief Applies timezone offset to a given time.
* @param time time to apply offset to.
* @param offset timezone offset in seconds.
* @return Time with timezone offset applied.
*/
uint64_t timezone_offset_apply(uint64_t time, int32_t offset);