Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sidebar:remoteapi:apiref:format:time:example [13/01/2016 12:28]
stan [Reverse operation]
en:sidebar:remoteapi:apiref:format:time:example [03/03/2021 08:55] (current)
chdi [Example of time zone receiving tz]
Line 6: Line 6:
 ---- ----
 1.    Mathematical AND should be applied to the Azores [[timezone|timezone]] using **0xf000ffff** mask. 1.    Mathematical AND should be applied to the Azores [[timezone|timezone]] using **0xf000ffff** mask.
 +
 +Each time decimal signed value should be performed to binary value using [[http://​https://​www.exploringbinary.com/​twos-complement-converter/​| decimal to two’s complement ]]method ​
 +
 <​code=javascript>​ <​code=javascript>​
 -3600 & 0xf000ffff -3600 & 0xf000ffff
Line 26: Line 29:
 61936 61936
 </​code>​ </​code>​
 +<note important>​ Only if the original tz value < 0 (it is in this example), then mathematical OR should be applied to the result using the mask 0xffff0000. If tz value > 0, the following step is not needed.</​note>​
 2) Mathematical OR should be applied to the result using the mask **0xffff0000**. 2) Mathematical OR should be applied to the result using the mask **0xffff0000**.
 <​code=javascript>​ <​code=javascript>​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam