Go to the documentation of this file.
22 #ifndef MamaTimeZoneH__
23 #define MamaTimeZoneH__
28 #include "wombat/port.h"
33 #if defined(__cplusplus)
118 #if defined(__cplusplus)
mama_status
Definition: status.h:37
MAMAExpDLL mamaTimeZone mamaTimeZone_utc(void)
Return a pointer to a mamaTimeZone corresponding to the UTC time zone.
MAMAExpDLL mama_status mamaTimeZone_createFromTz(mamaTimeZone *timeZone, const char *tzId)
Create an instance of a mamaTimeZone with a standard TZ identifier (NULL identifier is equivalent to ...
void * mamaTimeZone
Time zone utility type.
Definition: types.h:84
MAMAExpDLL mama_status mamaTimeZone_createCopy(mamaTimeZone *timeZone, const mamaTimeZone timeZoneCopy)
Create an instance of a mamaTimeZone by copying from another instance.
MAMAExpDLL mamaTimeZone mamaTimeZone_usEastern(void)
Return a pointer to a mamaTimeZone corresponding to the US Eastern time zone.
int32_t mama_i32_t
Definition: types.h:38
MAMAExpDLL mama_status mamaTimeZone_getTz(const mamaTimeZone timeZone, const char **result)
Get the time zone ID string.
MAMAExpDLL mama_status mamaTimeZone_getOffset(const mamaTimeZone timeZone, mama_i32_t *result)
Get the offset from UTC (in seconds).
MAMAExpDLL void mamaTimeZone_setScanningInterval(mama_f64_t seconds)
Set the interval of the thread updating each MamaTimeZone instance offset.
MAMAExpDLL mama_status mamaTimeZone_copy(mamaTimeZone timeZone, const mamaTimeZone timeZoneCopy)
Copy an instance of a mamaTimeZone (to a previously-created instance).
MAMAExpDLL mama_status mamaTimeZone_set(mamaTimeZone timeZone, const char *tzId)
Set an existing instance of a mamaTimeZone to a new time zone.
MAMAExpDLL mama_status mamaTimeZone_destroy(mamaTimeZone timeZone)
Destroy an instance of a mamaTimeZone.
double mama_f64_t
Definition: types.h:44
MAMAExpDLL mama_status mamaTimeZone_clear(mamaTimeZone timeZone)
Clear the time zone (but not destroyed).
MAMAExpDLL mama_status mamaTimeZone_check(mamaTimeZone timeZone)
Check (recalculate) the UTC offset in case it has changed due to daylight savings adjustments.
MAMAExpDLL mamaTimeZone mamaTimeZone_local(void)
Return a pointer to a mamaTimeZone corresponding to the local time zone.
MAMAExpDLL mama_status mamaTimeZone_create(mamaTimeZone *timeZone)
Create an instance of a mamaTimeZone.