17 #if !defined(RDMTIMETZAPI_H_INCLUDE_) 18 #define RDMTIMETZAPI_H_INCLUDE_ 20 #if defined(__cplusplus) && !defined(CPP_HEADER_INCLUDED) 21 #error rdmtimetzapi.h is only for C applications. Do not include it directly in C++ applications. Use cpp-rdmtimetzapi.h instead 27 #if !defined(RDM_NO_UNICODE) 28 #define rdm_timetzNowAsString RDM_T_FUNC(rdm_timetzNowAsString) 29 #define rdm_timetzFromString RDM_T_FUNC(rdm_timetzFromString) 30 #define rdm_timetzToString RDM_T_FUNC(rdm_timetzToString) RDM_RETCODE rdm_timetzToString(RDM_PACKED_TIMETZ_T timetzVal, RDM_TIME_FORMAT time_fmt, RDM_TCHAR_T *buf, size_t bufSize, size_t *puSize)
Convert a time with timezone to a string.
RDM_RETCODE rdm_timetzNowAsString(int16_t time_zone, RDM_TCHAR_T *timebuf, size_t buflen)
Get current time with timezone as a string.
uint32_t RDM_PACKED_TIME_T
The RDM packed Time data structure.
RDM Status and Error Return Codes.
RDM_RETCODE rdm_timetzNow(int16_t time_zone, RDM_PACKED_TIMETZ_T *ptz)
Get the current time with timezone.
RDM_RETCODE
RDM status and error return codes.
The RDM packed Time with time zone data structure.
RDM_RETCODE rdm_timetzFromString(const RDM_TCHAR_T *str, RDM_PACKED_TIMETZ_T *ptz)
Convert a string to a time.
RDM_PACKED_TIMETZ_T rdm_timetzZero(void)
Get the time at the start of a day.
Header for the public Date/Time types.
RDM_RETCODE rdm_timetzToTime(RDM_PACKED_TIMETZ_T timetzVal, int16_t tz_disp, RDM_PACKED_TIME_T *pTimeVal)
Convert a time with timezone to local time.
RDM_TIME_FORMAT
RDM time format codes.