[Zope] From date to timestamp
Loren Stafford
lstaffor@dynalogic.com
Sat, 26 Aug 2000 21:15:56 -0700
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