diff --git a/Understanding-the-Photos-database.md b/Understanding-the-Photos-database.md index 8d412c7..1a0715e 100644 --- a/Understanding-the-Photos-database.md +++ b/Understanding-the-Photos-database.md @@ -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).