DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
moment from seconds
let
seconds
=
456
;
console
.
log
(
moment
.
utc
(
seconds
*
1000
)
.
format
(
'HH:mm:ss'
)
)
;
// 00:07:36
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#moment
#seconds
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit