Answers for "typescript get current timestamp"

2

node get unix timestamp

Math.floor(new Date() / 1000) // in seconds
Posted by: Guest on March-30-2020
0

get epoch timestamp js

Math.floor(Date.now() / 1000)
Posted by: Guest on September-04-2020
0

typescript get current timestamp

// A unary operator like plus triggers the valueOf method in the Date object
// and it returns the timestamp (without any alteration).
+ new Date()
Posted by: Guest on July-15-2021

Code answers related to "typescript get current timestamp"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language