MAPI Manual

NAME

LIST_TIMEZONES

FUNCTION

List system time zones

SYNOPSIS

action: LIST_TIMEZONES

DESCRIPTION

This function allows users to get a list of system time zones information.

Required Parameters

* action: LIST_TIMEZONES.

RETURN DATA

The response contains the following attributes:
* sys_timezone: contains a list of time zones.
* tz_id: ID of the timezone. 
* tz_name: name of the timezone.
* tz_abbr: abbreviation of the timezone.
* timezone: offsets from Coordinated Universal Time (UTC).
* DST_begin_dt: begin date of Daylight Saving Time.
* DST_end_dt: end date of Daylight Saving Time.
* DST_tzoffset: offsets from the timezone of Daylight Saving Time.
* tz_desc: description of the time zone

ROLE PERMITTED

All roles

EXAMPLES

The following example shows a successful HTTP GET request and response. Note: the response is incomplete.

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=LIST_TIMEZONES&login_name=name@example.com&login_passwd=1111

Response:

<result tftype='1' infotype='0'>
    <resultset name='sys_timezone'>
        <row>
            <field name='tz_id'>1</field>
            <field name='tz_name'>Dateline Standard Time</field>
            <field name='tz_abbr'>TZ1</field>
            <field name='timezone'>-12:00</field>
            <field name='DST_begin_dt'>0000-00-00 00:00:00</field>
            <field name='DST_end_dt'>0000-00-00 00:00:00</field>
            <field name='DST_tzoffset'></field>
            <field name='tz_desc'>(UTC-12:00) International Date Line West</field>
        </row>
        <row>
            <field name='tz_id'>2</field>
            <field name='tz_name'>UTC-11</field>
            <field name='tz_abbr'>TZ2</field>
            <field name='timezone'>-11:00</field>
            <field name='DST_begin_dt'>0000-00-00 00:00:00</field>
            <field name='DST_end_dt'>0000-00-00 00:00:00</field>
            <field name='DST_tzoffset'></field>
            <field name='tz_desc'>(UTC-11:00) Coordinated Universal Time-11</field>
        </row>
        ...
        ...
        ...
    </resultset>
</result>

TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

LOGIN

Mweb v2.0 YVNTECH 2014