I am calling an external API and one of the parameters I have to pass is the date but in a string like (now or last week) this in turn gets converted to a timestamp using strtotime.
The problem is that I already have a timestamp but the API requires a string.
So my question is how do I take a timestamp and convert it to a string that strtotime() will return the exact same timestamp?
Thanks