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 Both sides next revision
en:sidebar:remoteapi:apiref:format:time:example [13/01/2016 10:13]
stan [Reverse operation]
en:sidebar:remoteapi:apiref:format:time:example [13/01/2016 12:25]
stan
Line 19: Line 19:
  
 =====Reverse operation===== =====Reverse operation=====
 +tz=-134155792
  
-Time zone is presented as signed short. +1) Mathematical AND should be applied to the ‘tz’ parameter ​using **0xffff** mask.
- +
-tz=-134155792 in hex 0xf800f1f0 +
- +
-1) Value using **0x0fff0000** mask is [[dst|dst]]. +
-0x08000000 - none. +
- +
-2) Value using **0xffff** mask is Time zone. +
----- +
 <​code=javascript>​ <​code=javascript>​
-0xf1f0+-134155792 & 0xffff | 0xFFFF0000 
 +61936 
 +</​code>​ 
 +2) Mathematical OR should be applied to the result using the mask **0xffff0000**. 
 +<​code=javascript>​ 
 +61936 | 0xffff0000
 -3600 -3600
 </​code>​ </​code>​
 +[[timezone|timezone]] ​ (-01:00) Azores.
 +----
 +tz=-134155792 in hex 0xf800f1f0
  
-[[timezone|Time zone]]  (-01:00) Azores.+Value using **0x0fff0000** mask is [[dst|dst]]
 +0x08000000 ​none.
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam