Reputation: 6548
Is there a data type like Timestamp which I can use for Date().getTime()
const currentTime = new Date().getTime();
Upvotes: 1
Views: 4932
Reputation: 30665
getTime
returns number
timeVar: number = new Date().getTime();
Upvotes: 1