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
According to the manual you are allowed to provide a unix timestamp, if you precede it with an @:
Unix Timestamp "@" "-"? [0-9]+ "@1215282385"
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments