27 Aug
2000
27 Aug
'00
1:19 a.m.
I managed to go from timestamp to date with <dtml-var "ZopeTime(967322055)" fmt="%H:%M"> But how do convert a date to timestamp? I.e. from say: "27/08/00 23:59" to 967322xxx? All I know to begin with is the day, month and year. Would be nice if I can do this in DTML straight away. Is it time.mktime something?
27 Aug
27 Aug
4:15 a.m.
New subject: [Zope] From date to timestamp
From: "Peter Be" <peter@grenna.net>
I managed to go from timestamp to date with <dtml-var "ZopeTime(967322055)" fmt="%H:%M">
But how do convert a date to timestamp? I.e. from say: "27/08/00 23:59" to 967322xxx? All I know to begin with is the day, month and year.
Would be nice if I can do this in DTML straight away. Is it time.mktime something?
It's DateTime(), defined and documented in ../lib/python/DateTime/DateTime.py. -- Loren
9353
Age (days ago)
9353
Last active (days ago)
1 comments
2 participants
participants (2)
-
Loren Stafford -
Peter Be