MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eiulbid
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
3
Eh not that great but (new Date().getTime()) is my quick way to get Unix time in one line
8 u/GBcrazy Mar 19 '19 You can do this with Date.now() 1 u/robolab-io Mar 19 '19 Lmfao, I knew I was missing something. Thanks. Tomorrow I'm going to ninja edit the few places I wrote this. 0 u/dwighthouse Mar 19 '19 Literally equivalent to Date.now().
8
You can do this with Date.now()
Date.now()
1 u/robolab-io Mar 19 '19 Lmfao, I knew I was missing something. Thanks. Tomorrow I'm going to ninja edit the few places I wrote this.
1
Lmfao, I knew I was missing something. Thanks. Tomorrow I'm going to ninja edit the few places I wrote this.
0
Literally equivalent to Date.now().
3
u/robolab-io Mar 19 '19
Eh not that great but (new Date().getTime()) is my quick way to get Unix time in one line