J-Thread
Full Member
Posts: 467 Reputation: 8
– / / –
Joined: Jul 2004
|
RE: [Request] seconds_since function
code: function seconds_since(day, month, year) {
var myDate=new Date();
myDate.setFullYear(year,month - 1,day);
var myDate2=new Date();
return Math.round((myDate2.getTime() - myDate.getTime()) / 1000);
}
|
|