View Single Post
Old 02-04-2008, 04:13   #2 (permalink)
d*d
Senior Member
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,057
I would use the unix timestamp to get the time (another timestamp) 12 hours ago. I would then put code similar to what you have there into a function (with a timestamp argument) which creates a displayTime variable from that argument, then use setInterval with that function to display the times leading up to now

make sense?
  Reply With Quote