Returns the time zone code of the indicated user.

1 system.user.getTimeZone

<system.user.getTimeZone code='code'/>
Example

Obtains the code of the user's time zome by default.

Copy
<xsql-script name='system_user_getTimeZone_sample1'>
    <body>
        <println>
            <system.user.getTimeZone />
        </println>
    </body>
</xsql-script>

If you do not pass an user code via the attribute code, the system returns the value related with the user which executes the command.

Example

Obtain the time zone code of a specific user.

Copy
<xsql-script name='system_user_getTimeZone_sample2'>
    <body>
        <println>
            <system.user.getTimeZone code='bpr'/>
        </println>
    </body>
</xsql-script>

Informing the attribute code, the system returns the value related with the specified user code.