movement: implement time zone setting

This commit is contained in:
Joey Castillo
2021-11-25 10:06:49 -05:00
parent 4a71def034
commit 5c3967aea2
5 changed files with 71 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ const char * watch_utility_get_weekday(watch_date_time date_time);
* @param hour The hour of the date you wish to convert.
* @param minute The minute of the date you wish to convert.
* @param second The second of the date you wish to convert.
* @param utc_offset The number of seconds that date_time is offset from UTC, or 0 if the time is UTC.
* @return A UNIX timestamp for the given date/time and UTC offset.
* @note Implemented by Wesley Ellis (tahnok) and based on BSD-licensed code by Josh Haberman:
* https://blog.reverberate.org/2020/05/12/optimizing-date-algorithms.html