Re: Date Format: ex: about 2 hours ago

2008-12-24 Thread Matthew
All of the clients and the web post friendly things like about 2 hours ago. Can anyone provide a standard routine for converting the pure date element into these english strings? take a look at the way Rails does it as well,

Re: Date Format: ex: about 2 hours ago

2008-12-24 Thread Chad Etzel
Here's the code I have been using for such a task (written in javascript). Consider it a Christmas present :) var getdatediff = function (now_ms, gmt) { var dt_ms = Date.parse(gmt); var delta = now_ms - dt_ms; delta = Math.floor(delta / 1000); // turn into seconds if (delta 86400) {

Re: Date Format: ex: about 2 hours ago

2008-12-24 Thread Cameron Kaiser
Here's the code I have been using for such a task (written in javascript). Consider it a Christmas present :) Very elegant. :) -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- A