if your $row.time is a datetime

eg:
$row.time = datetime.datetime.now()

then you can use the function strftime to format your time



Blog: http://shiao.org
Twitter: @lepture


On Wed, May 26, 2010 at 16:36, wolfv <[email protected]> wrote:
>
> I have some record in sqlite ,every record have a time stamp;
> I select them
> ====
> resu   = init.db.select('messages')
> ====
> and use this code to print them in the template file
> ======
> $for row in resu:
>       <li>$row.n...@$row.time Says:$row.cont</li>
> ======
> but now I dont know how to print the time formated.
> Need your help ! THX.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/webpy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to