Get Timestamp in Seconds
suggest changeThis is the Unix time in whole seconds. Math.floor drops the fractional second. For the current time that value is positive, so the result is the same as truncating toward zero.
Math.floor(Date.now() / 1000)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents