17 #if !defined(RDMTIMEZONETZAPI_H_INCLUDED_) 18 #define RDMTIMEZONETZAPI_H_INCLUDED_ 20 #if defined(__cplusplus) && !defined(CPP_HEADER_INCLUDED) 21 #error rdmtimestamptzapi.h is only for C applications. Do not include it directly in C++ applications. Use cpp-rdmtimestamptzapi.h instead 27 #if !defined(RDM_NO_UNICODE) 28 #define rdm_timestamptzFromString RDM_T_FUNC(rdm_timestamptzFromString) 29 #define rdm_timestamptzNowAsString RDM_T_FUNC(rdm_timestamptzNowAsString) 30 #define rdm_timestamptzToString RDM_T_FUNC(rdm_timestamptzToString) RDM_RETCODE rdm_timestamptzFromTimestamp(RDM_PACKED_TIMESTAMP_T tsVal, int16_t tz, RDM_PACKED_TIMESTAMPTZ_T *pTszVal)
Convert a local timestamp to timestamp with timezone.
RDM_RETCODE rdm_timestamptzNow(int16_t time_zone, RDM_PACKED_TIMESTAMPTZ_T *tsz)
Get the current timestamp with timezone.
RDM_DATE_FORMAT
RDM Date format codes.
RDM_RETCODE rdm_timestamptzToTimestamp(RDM_PACKED_TIMESTAMPTZ_T tstzVal, int16_t tz_disp, RDM_PACKED_TIMESTAMP_T *pTsVal)
Convert a timestamp with timezone to a string.
RDM Status and Error Return Codes.
RDM_RETCODE rdm_timestamptzFromString(const RDM_TCHAR_T *str, RDM_DATE_FORMAT date_fmt, RDM_PACKED_TIMESTAMPTZ_T *ptsz)
Convert from a string to a timestamp with timezone.
The RDM packed Timestamp with time zone data structure.
RDM_RETCODE
RDM status and error return codes.
RDM_RETCODE rdm_timestamptzToString(RDM_PACKED_TIMESTAMPTZ_T tszVal, RDM_DATE_FORMAT date_format, RDM_TCHAR_T date_sep, RDM_TIME_FORMAT time_format, RDM_TCHAR_T *buf, size_t bufSize, size_t *puSize)
Convert a timestamp with timezone to a string.
RDM_PACKED_TIMESTAMPTZ_T rdm_timestamptzZero(void)
Get the timestamp of the epoch.
The RDM packed Timestamp data structure.
RDM_RETCODE rdm_timestamptzNowAsString(int16_t time_zone, RDM_TCHAR_T *tszbuf, size_t buflen)
Get the current timestamp with timezone as string.
Header for the public Date/Time types.
RDM_TIME_FORMAT
RDM time format codes.