Skip to content
Advertisement

Python – Add time zone to timestamp

I use chrome timestamp and convert it do readable date but time isn’t right

JavaScript

Seems to be timezone need to be added

example for last_visit_time : 13292010189305268

Advertisement

Answer

Assuming that Chrome timestamps denote microseconds since 1601 UTC, you’ll want to make your datetime aware:

JavaScript

If you want to format it for a non-UTC timezone, add a conversion step:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement