Hi,
I’ve had a further look at this and it says:
The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC), relative to the timestamp given in now, or the current time if now is not supplied.
This means that if I do DateTime as below it should work as it’s being supplied with the Date:
{{dc:post:publish_date}} before
strtotime(’-72 hours’)
I’ve also tried:
strtotime(’{{dc:post:publish_date format=“Y-m-d”}}{{dc:post:publish_time format=“H:i”}}’) is
strtotime(’-72 hours’)
{{dc:post:publish_date}} after
strtotime(’-72 hours’)
Is there a way I can get the age of a post in hours or minutes, then I can use strtotime(’-72 hours’) or strtotime(’-4320 minutes’)
My whole project is riding on this one thing before I can sign off and complete it, so any help would be very much appreciated - this is a project I am doing for free and so the ThemeCo One isn’t an option for me unfortunately.
Thanks, Tom.