piowit

lastModified

Nov 5th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 update = new Date(document.lastModified);
  2.                 theMonth = update.getMonth()+1;
  3.                 theDate = update.getDate();
  4.                 theYear = update.getFullYear();
  5.                 if (update.getHours === 23) {
  6.                     theHour = 0;
  7.                 } else {
  8.                     theHour = update.getHours()+1 ;
  9.                 }
  10.                 theMinutes = update.getMinutes();
  11.                 theSec = update.getSeconds();
  12.                 document.writeln(theMonth + "/" + theDate + "/" + theYear + " " + theHour + ":" + theMinutes + ":" + theSec);
Advertisement
Add Comment
Please, Sign In to add comment