Converting dates to "time ago"

Converting dates to "time ago"

Tuesday 31 July 2007 2:36:31 pm - 1 reply

Author Message

André R.

Wednesday 01 August 2007 1:38:35 am

if you convert it to unix timestamp(the internal format used for date and date & time datatype) you can subtract it from current time to get how many seconds they diff.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.