Class TimeZone

This class contains timezone constants.

Methods


(bool) <timezone c1> == <timezone c2>

Test whether parameters have the same value.

Parameters

Return value

Example

main
  timezone tz1             // tz == LOCAL
  timezone tz2 = UTC
  bool result = tz1 == tz2 // result == false
              

(bool) <timezone c1> != <timezone c2>

Test whether parameters are not equal.

Parameters

Return value

Example

main
  timezone tz1             // tz == LOCAL
  timezone tz2 = UTC
  bool result = tz1 != tz2 // result == true
              

(timezone) LOCAL

Timezone set to LOCAL.

Return value

Example

main
  timezone tz = LOCAL   // tz == LOCAL
                    

(timezone) UTC

Timezone set to UTC (Coordinated Universal Time).

Return value

Example

main
  timezone tz = UTC   // tz == UTC