10#ifndef INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_
40 int32_t rounding = longitude > 0 ? 75000000 : -75000000;
42 return (longitude + rounding) / 150000000;
59 int32_t rounding = longitude > 0 ? 1250000 : -1250000;
61 return (longitude + rounding) / 2500000;
static int8_t utc_timezone_location_approximate(int32_t longitude)
Calculate the approximate UTC timezone of a location.
Definition timezone.h:38
static int16_t utc_timezone_minutes_location_approximate(int32_t longitude)
Calculate the approximate UTC timezone of a location in minutes.
Definition timezone.h:57