# test data
= "2022-06-24T19:38:55.633Z"
test_string get_timestamp(test_string)
1656110335
Imports
This is kinda neat that I can fire markdown in here. BTW #| export is magic to mean export it into the source file when we run nbdev_export
get_timestamp (timestamp)
Google stores the timestamp in different formats, making this annoying
Details | |
---|---|
timestamp | Example: 2022-06-24T19:38:55.633Z or 2022-06-24T19:38:55Z |
sample data to validate the google json export format
get_locations (file_to_open)
{'latitudeE7': 446549213,
'longitudeE7': -635836178,
'accuracy': 45,
'source': 'WIFI',
'timestamp': '2016-06-29T13:13:01.899Z'}
{'latitudeE7': 446551683,
'longitudeE7': -635835479,
'accuracy': 111,
'source': 'WIFI',
'timestamp': '2016-06-29T16:29:08.374Z'}
build_location_history (locations)
more validation of output, note that these don’t get exported to the library
Location(timestamp=1467216494, latitude=446549411, longitude=-635836042, accuracy=41)