How to take current time, subtract an hour, and convert to UNIX timestamp?

I have an API and I need to dynamically generate a UNIX timestamp in seconds by taking the current time and subtracting an amount of time from it so I can use it in a query parameter.


I’m not sure how to see what these produce, but my guess is none of them are outputting seconds.

Community Page
Last updated: