This is an old revision of the document!
‘tz’ parameter can be received using Mathematical AND (&) Mathematical OR (|) bit operations.
For example, it is necessary to receive ‘tz’ parameter for the Azores time zone (-01:00), dst - none(0x08000000).
1. Mathematical AND should be applied to the Azores timezone using 0xf000ffff mask.
-3600 & 0xf000ffff -268373520
2. Mathematical OR should be applied to the result using the mask corresponding to the dst.
-268373520 | 0x8000000 -134155792
tz=-134155792
|