Infuse-IoT SDK API
0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
timezone.h
Go to the documentation of this file.
1
10
#ifndef INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_
11
#define INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_
12
13
#include <stdint.h>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
37
static
inline
int8_t
utc_timezone_location_approximate
(int32_t longitude)
38
{
39
int32_t rounding = longitude > 0 ? 75000000 : -75000000;
40
41
return
(longitude + rounding) / 150000000;
42
}
43
48
#ifdef __cplusplus
49
}
50
#endif
51
52
#endif
/* INFUSE_SDK_INCLUDE_INFUSE_TIME_TIMEZONE_H_ */
utc_timezone_location_approximate
static int8_t utc_timezone_location_approximate(int32_t longitude)
Calculate the approximate UTC timezone of a location.
Definition
timezone.h:37
infuse
time
timezone.h
Generated on Thu Sep 11 2025 11:38:52 for Infuse-IoT SDK API by
1.12.0