fixed_date - photo_date #1701
-
👋📷🤓 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @bimbamborius , glad you've found OSXPhotos useful. There's no way to do this out of the box but I've created a simple template function that might do what you want. There are three functions defined in date_delta.py:
Alternatively, you could download date_delta.py to your Mac and call it like this:
The date argument is passed in For example, this query command prints the photo name, the photo date, and the date delta in months. Note that the date passed is assumed to be local timezone and the photo date will use the timezone of the photo so this could mean that the delta is different than expected when accounting for timezones.
|
Beta Was this translation helpful? Give feedback.
Hi @bimbamborius , glad you've found OSXPhotos useful. There's no way to do this out of the box but I've created a simple template function that might do what you want. There are three functions defined in date_delta.py:
years_since
,months_since
, anddays_since
. To use them in any osxphotos command that accepts templates, you'd call like this:"{function:https://raw.githubusercontent.com/RhetTbull/osxphotos/refs/heads/main/examples/date_delta.py::months_since(2021-10-01)}"
Alternatively, you could download date_delta.py to your Mac and call it like this:
"{function:date_delta.py::months_since(2021-10-01)}"
"{function:date_delta.py::days_since(2021-10-01)}"
"{function:date_delta.py::years…