Skip to content

Instantly share code, notes, and snippets.

@vivekrk1992
Created July 1, 2018 07:59
Show Gist options
  • Save vivekrk1992/15e33ae89161b6db2199f2871928df98 to your computer and use it in GitHub Desktop.
Save vivekrk1992/15e33ae89161b6db2199f2871928df98 to your computer and use it in GitHub Desktop.
Convert GPS timestamp to datetime using python
gps timestamp
```
t = '1530430370491'
```
```
gps_time_stamp = (int(t) / 1000)
time_stamp = datetime.fromtimestamp(gps_time_stamp)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment