Let's restart counting Unix timestamp to from 2020
Old counting start date: Jan 01 1970 01:00:00 GMT+0100
New counting start date: Jan 1 2020 00:00:00 UTC+0000
Example in Dev Tools how to get the new epoch time
const newBeginning = new Date('Jan 1 2020 00:00:00 UTC+0000')
const newEpoch = Date.now() - newBeginning.getTime()
console.log('New epoch timestamp', newEpoch)
1 comment
[ 4.8 ms ] story [ 15.4 ms ] thread