dhir_vl
2 years agoReel Rookie
Timestamp delta during conversion
I have a response from server which should look like below.
{ "startDate": 1695034800, "endDate": 1695036540 }
However, the response is print as below in the console.
{"startDate":1.6950348e+09,"endDate":1.69503654e+09}
I convert the printed startDate to a variable as below.
timestamp& = json.startDate
Here, I get incorrect value 1695034752, when it should have been 1695034800. How do I get the correct value?