DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to get the timestamp in javascript
const currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#timestamp
#javascript
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit