10#ifndef INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_
39 int32_t rounding = longitude > 0 ? 75000000 : -75000000;
41 return (longitude + rounding) / 150000000;
58 int32_t rounding = longitude > 0 ? 1250000 : -1250000;
60 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:37
static int16_t utc_timezone_minutes_location_approximate(int32_t longitude)
Calculate the approximate UTC timezone of a location in minutes.
Definition timezone.h:56