|
TuyaOS
|
tuya time module 更多...
#include "tal_time_service.h"

宏定义 | |
| #define | tuya_uni_get_sum_zone(sum_zone) tal_time_get_sum_zone(sum_zone) |
| get sum zone info 更多... | |
| #define | uni_get_system_time(pSecTime, pMsTime) tal_time_get_system_time(pSecTime, pMsTime) |
| get IoTOS UTC time remain micro-second time 更多... | |
| #define | uni_get_time_zone_seconds(time_zone) tal_time_get_time_zone_seconds(time_zone) |
| get IoTOS time zone in second format 更多... | |
| #define | uni_gmtime_r(tm, result) tal_time_gmtime_r(tm, result) |
| change TIME_T to posix time, redefine the std C func gmtime_r 更多... | |
| #define | uni_is_in_sum_zone(time) tal_time_is_in_sum_zone(time) |
| get IoTOS UTC summer time int TIME_T format 更多... | |
| #define | uni_local_time_get(tm) tal_time_get_local_time_custom(0, tm) |
| get IoTOS local time (local, contains the time zone and summer time zone) 更多... | |
| #define | uni_local_time_get_custom(in_time, tm) tal_time_get_local_time_custom(in_time, tm) |
| get IoTOS local time (local, contains the time zone and summer time zone) 更多... | |
| #define | uni_mktime(tm) tal_time_mktime(tm) |
| change posix time to TIME_T, redefine the std C func mktime 更多... | |
| #define | uni_set_sum_zone_tbl(zone, cnt) tal_time_set_sum_zone_tbl(zone, cnt) |
| set IoTOS summer time zone 更多... | |
| #define | uni_set_time_zone(time_zone) tal_time_set_time_zone(time_zone) |
| set IoTOS time zone in "+/-hh:mm" format 更多... | |
| #define | uni_set_time_zone_seconds(time_zone_sec) tal_time_set_time_zone_seconds(time_zone_sec) |
| set IoTOS time zone in second format 更多... | |
| #define | uni_sum_time_get(tm) tal_time_get_sum_time(tm) |
| get IoTOS UTC summer time in posix time format 更多... | |
| #define | uni_sum_time_get_posix() tal_time_get_sum_time_posix() |
| get IoTOS UTC summer time int TIME_T format 更多... | |
| #define | uni_time_check_time_sync() tal_time_check_time_sync() |
| change http-GMT format time to TIME_T 更多... | |
| #define | uni_time_check_time_zone_sync() tal_time_check_time_zone_sync() |
| check IoTOS time zone synchronized status 更多... | |
| #define | uni_time_get(tm) tal_time_get(tm) |
| get IoTOS UTC time in posix time format 更多... | |
| #define | uni_time_get_cur_posix() tal_time_get_cur_posix() |
| get IoTOS last synchronized UTC time in TIME_T format 更多... | |
| #define | uni_time_get_posix() tal_time_get_posix() |
| get IoTOS UTC time in TIME_T format 更多... | |
| #define | uni_time_get_posix_ms() tal_time_get_posix_ms() |
| get IoTOS UTC time in SYS_TICK_T format 更多... | |
| #define | uni_time_init() tal_time_service_init() |
| time-management module initialization 更多... | |
| #define | uni_time_set(tm) tal_time_set(tm) |
| set IoTOS UTC time 更多... | |
| #define | uni_time_set_posix(time, update_source) tal_time_set_posix(time, update_source) |
| set IoTOS UTC time in time_t format 更多... | |
tuya time module
| #define tuya_uni_get_sum_zone | ( | sum_zone | ) | tal_time_get_sum_zone(sum_zone) |
get sum zone info
| [out] | sum | zone info |
| #define uni_get_system_time | ( | pSecTime, | |
| pMsTime | |||
| ) | tal_time_get_system_time(pSecTime, pMsTime) |
get IoTOS UTC time remain micro-second time
get IoTOS UTC time, both second and micro-second
| [out] | pSecTime | the current time in second |
| [out] | pMsTime | the current time in micro-second |
| #define uni_get_time_zone_seconds | ( | time_zone | ) | tal_time_get_time_zone_seconds(time_zone) |
get IoTOS time zone in second format
| [out] | time_zone | the current time zone in second format |
| #define uni_gmtime_r | ( | tm, | |
| result | |||
| ) | tal_time_gmtime_r(tm, result) |
change TIME_T to posix time, redefine the std C func gmtime_r
| [in] | tm | the time in TIME_T format |
| [out] | result | the time in posix time format |
| #define uni_is_in_sum_zone | ( | time | ) | tal_time_is_in_sum_zone(time) |
get IoTOS UTC summer time int TIME_T format
| #define uni_local_time_get | ( | tm | ) | tal_time_get_local_time_custom(0, tm) |
get IoTOS local time (local, contains the time zone and summer time zone)
| [out] | tm | the current local time in posix format |
| #define uni_local_time_get_custom | ( | in_time, | |
| tm | |||
| ) | tal_time_get_local_time_custom(in_time, tm) |
get IoTOS local time (local, contains the time zone and summer time zone)
| [in] | in_time | the time need translate |
| [out] | tm | the local time in posix format |
| #define uni_mktime | ( | tm | ) | tal_time_mktime(tm) |
change posix time to TIME_T, redefine the std C func mktime
| [in] | tm | the time in posix time format |
| #define uni_set_sum_zone_tbl | ( | zone, | |
| cnt | |||
| ) | tal_time_set_sum_zone_tbl(zone, cnt) |
set IoTOS summer time zone
| [in] | zone | the summer time zone table |
| [in] | cnt | the summer time counts |
| #define uni_set_time_zone | ( | time_zone | ) | tal_time_set_time_zone(time_zone) |
set IoTOS time zone in "+/-hh:mm" format
| [in] | time_zone | the new time zone in "+/-hh:mm" format |
| #define uni_set_time_zone_seconds | ( | time_zone_sec | ) | tal_time_set_time_zone_seconds(time_zone_sec) |
set IoTOS time zone in second format
| [in] | time_zone | the new time zone in second format |
| #define uni_sum_time_get | ( | tm | ) | tal_time_get_sum_time(tm) |
get IoTOS UTC summer time in posix time format
| [out] | tm | the summer time in posix format |
| #define uni_sum_time_get_posix | ( | ) | tal_time_get_sum_time_posix() |
get IoTOS UTC summer time int TIME_T format
| #define uni_time_check_time_sync | ( | ) | tal_time_check_time_sync() |
change http-GMT format time to TIME_T
| [in] | date | http-GMT format time |
check IoTOS time synchronize status
| #define uni_time_check_time_zone_sync | ( | ) | tal_time_check_time_zone_sync() |
check IoTOS time zone synchronized status
| #define uni_time_get | ( | tm | ) | tal_time_get(tm) |
get IoTOS UTC time in posix time format
| [out] | tm | the IoTOS UTC time in posix time format |
| #define uni_time_get_cur_posix | ( | ) | tal_time_get_cur_posix() |
get IoTOS last synchronized UTC time in TIME_T format
| #define uni_time_get_posix | ( | ) | tal_time_get_posix() |
get IoTOS UTC time in TIME_T format
| #define uni_time_get_posix_ms | ( | ) | tal_time_get_posix_ms() |
get IoTOS UTC time in SYS_TICK_T format
| #define uni_time_init | ( | ) | tal_time_service_init() |
time-management module initialization
| #define uni_time_set | ( | tm | ) | tal_time_set(tm) |
set IoTOS UTC time
| [in] | tm | the new time in posix time format |
| #define uni_time_set_posix | ( | time, | |
| update_source | |||
| ) | tal_time_set_posix(time, update_source) |
set IoTOS UTC time in time_t format
| [in] | time | the new time in time_t format |
| [in] | update_source | the source of time (0:rtc 1:cloud 2:other) |