Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript calculate 24 hours ago

var ts = Math.round(new Date().getTime() / 1000);
var tsYesterday = ts - (24 * 3600);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #calculate #hours
ADD COMMENT
Topic
Name
5+7 =