OpenMAMA
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
timezone.h File Reference
#include <mama/config.h>
#include <mama/status.h>
#include <mama/types.h>
#include "wombat/port.h"
#include <time.h>

Go to the source code of this file.

Functions

MAMAExpDLL mamaTimeZone mamaTimeZone_local (void)
 Return a pointer to a mamaTimeZone corresponding to the local time zone.
MAMAExpDLL mamaTimeZone mamaTimeZone_utc (void)
 Return a pointer to a mamaTimeZone corresponding to the UTC time zone.
MAMAExpDLL mamaTimeZone mamaTimeZone_usEastern (void)
 Return a pointer to a mamaTimeZone corresponding to the US Eastern time zone.
MAMAExpDLL mama_status mamaTimeZone_create (mamaTimeZone *timeZone)
 Create an instance of a mamaTimeZone.
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 the local time zone)
MAMAExpDLL mama_status mamaTimeZone_createCopy (mamaTimeZone *timeZone, const mamaTimeZone timeZoneCopy)
 Create an instance of a mamaTimeZone by copying from another instance.
MAMAExpDLL mama_status mamaTimeZone_destroy (mamaTimeZone timeZone)
 Destroy an instance of a mamaTimeZone.
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_clear (mamaTimeZone timeZone)
 Clear the time zone (but not destroyed).
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 mama_status mamaTimeZone_check (mamaTimeZone timeZone)
 Check (recalculate) the UTC offset in case it has changed due to daylight savings adjustments.
MAMAExpDLL void mamaTimeZone_setScanningInterval (mama_f64_t seconds)
 Set the interval of the thread updating each MamaTimeZone instance offset.

Function Documentation

MAMAExpDLL mamaTimeZone mamaTimeZone_local ( void  )

Return a pointer to a mamaTimeZone corresponding to the local time zone.

MAMAExpDLL mamaTimeZone mamaTimeZone_utc ( void  )

Return a pointer to a mamaTimeZone corresponding to the UTC time zone.

MAMAExpDLL mamaTimeZone mamaTimeZone_usEastern ( void  )

Return a pointer to a mamaTimeZone corresponding to the US Eastern time zone.

MAMAExpDLL mama_status mamaTimeZone_create ( mamaTimeZone timeZone)

Create an instance of a mamaTimeZone.

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 the local time zone)

MAMAExpDLL mama_status mamaTimeZone_createCopy ( mamaTimeZone timeZone,
const mamaTimeZone  timeZoneCopy 
)

Create an instance of a mamaTimeZone by copying from another instance.

MAMAExpDLL mama_status mamaTimeZone_destroy ( mamaTimeZone  timeZone)

Destroy an instance of a mamaTimeZone.

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_clear ( mamaTimeZone  timeZone)

Clear the time zone (but not destroyed).

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).

Can be positive or negative, depending upon the direction.

MAMAExpDLL mama_status mamaTimeZone_check ( mamaTimeZone  timeZone)

Check (recalculate) the UTC offset in case it has changed due to daylight savings adjustments.

MAMAExpDLL void mamaTimeZone_setScanningInterval ( mama_f64_t  seconds)

Set the interval of the thread updating each MamaTimeZone instance offset.



© 2012 Linux Foundation