On Wednesday, April 10, 2013 7:31:35 AM UTC-7, Niphlod wrote: > > I did say "see it" .... prettydate as it is takes a date and calculates > automatically the timedelta to "now". > > You need to have your own prettydate to be able to pass a timedelta of > your own. > > If you've got a datetime.datetime kind of date, which is what the DAL returns, then the usual Python functions should allow you to pull pieces out, or just use strftime(). If you're working with a datetime.timedelta object, then you can also pull out the pieces pretty easily, which should make it easy to emulate prettydate.
/dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.