Updated Understanding the Photos database (markdown)

Rhet Turnbull
2020-05-09 18:12:26 -05:00
parent 48612b57d4
commit cea7943dc0

@@ -37,7 +37,8 @@ Most of what is described in the following comes from reverse engineering what P
Dates & times in the database are stored as a MacOS time value which is the number of seconds since 2001-01-01 00:00:00. To work with these in python, you'll need add the number of seconds since the Unix time epoch of 1970-01-01 00:00:00. I do this by computing a time delta thusly:
```python
td = (datetime(2001, 1, 1, 0, 0) - datetime(1970, 1, 1, 0, 0)).total_seconds()```
td = (datetime(2001, 1, 1, 0, 0) - datetime(1970, 1, 1, 0, 0)).total_seconds()
```
Additional details about the Photos 5 database structure are [here](https://github.com/RhetTbull/osxphotos/wiki/Photos-version-5-database).