Skip to content
Advertisement

Tag: python-3.1

Python – Add time zone to timestamp

I use chrome timestamp and convert it do readable date but time isn’t right Seems to be timezone need to be added example for last_visit_time : 13292010189305268 Answer Assuming that Chrome timestamps denote microseconds since 1601 UTC, you’ll want to make your datetime aware: If you want to format it for a non-UTC timezone, add a conversion step:

Advertisement