Tag: time

ydate (Smarty extension function) ydate is a Smarty extension function that formats a date or time value according to certain rules: if the time is < 91 seconds, it shows "about a minute ago" if the time is < 31 minutes, it shows "about X minutes ago" if the time is < 91 minutes, it shows "about an hour ago" if the time is < 12 hours, it shows...
0 comment(s) / glen / Templates / on April 2, 2005 at 17:38

userdate (Smarty extension function) userdate is a Smarty extension function that formats a date or time string and adjusts it for the logged-in user's timezone. Example:     {$doc_created|userdate:"%Y-%m-%d %H:%S"} This will display the document creation date adjusted for the user's timezone. The format string uses the standard PHP strftime() function; it is recommended that you not include a timezone...
0 comment(s) / glen / Templates / on April 2, 2005 at 17:34