I’m trying to create a time value I can easily relate to others.
var created = Date.now() * 1000
var day_ago = Date.now() * 1000 - 24*60*60
if(created > day_ago){console.log('it was created in the last day')}
This doesn’t seem to work correctly, anyone know what I’m doing wrong
Date.now() will return milli seconds devide by 1000 will convert that in seconds.