24 Nov
1999
24 Nov
'99
4:19 p.m.
My proxy is apparently not working well ( what else is new...), so I can't get to www.zope.org. Maybe someone can help me with this simple DateTime problem. I have a variable, accessible as <dtml-var lastLoginTime>. the value is functionally equivalent to int(time.time()). How can I turn this into a DateTime object within dtml so that I may format it eg, fmt=AMPM ? Thanks, Bill Scherer
24 Nov
24 Nov
7:58 p.m.
New subject: [Zope] DateTime help
ScherBi@BAM.com wrote:
I have a variable, accessible as <dtml-var lastLoginTime>. the value is functionally equivalent to int(time.time()).
How can I turn this into a DateTime object within dtml so that I may format it eg, fmt=AMPM ?
Pass it to _.DateTime(), as in: <dtml-var expr="_.DateTime(lastLoginTime)" fmt=AMPM> Cheers, Evan @ 4-am
9630
Age (days ago)
9630
Last active (days ago)
1 comments
2 participants
participants (2)
-
Evan Simpson -
ScherBi@BAM.com