On Wed, Oct 13, 2010 at 5:54 PM, Greg Milby <[email protected]> wrote:
> you could just use import strftime set a var accordingly?
> my_timestamp = time.strftime("%b %d, %Y") #shape it however you want?
> write it on post/submit?
> templating suggestion here:
> http://groups.google.com/group/webpy/browse_thread/thread/687ca9a3e3ea67de?fwc=1
You can also create a view that selects the time column using DBMS's
built-in time formatting functions. For SQLite3, that'd be:
CREATE VIEW table_formatted_time AS
SELECT strftime('%Time%format', col), other, cols FROM table;
--
Branko Vukelić
[email protected]
[email protected]
Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny
Gimp Brushmakers Guild
http://bit.ly/gbg-group
--
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.