Skip to content

fixed_date - photo_date #1701

Answered by RhetTbull
bimbamborius asked this question in Q&A
Discussion options

You must be logged in to vote

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, and days_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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bimbamborius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants