[Zope] Getting the epoch time as an integer
Marcus Collins
mcollins@sunesi.com
Mon, 24 Jan 2000 11:07:10 +0200
Use <dtml-var "_.int(ZopeTime())">
This bypasses the string representation and returns the date as a number of
seconds since the epoch
HTH,
-- Marcus
> -----Original Message-----
> From: J C Lawrence [mailto:claw@kanga.nu]
> Sent: 24 January 2000 09:00
> To: zope@zope.org
> Subject: [Zope] Getting the epoch time as an integer
>
>
>
> How do I get the current time as the number of seconds since the
> Epoch?
>
> I know I can use ZopeTime in various interesting ways to get a
> pretty string that expresses the current time/date in human readable
> format. I don't want that. I want the raw integer number of
> seconds since 1970. I've been thru the HOW-TO, thru the DTML guide
> and all the option and format strings and I just don't see it (or
> I'm going blind). Surely there's a way to get just the raw time_t?
>
> --
> J C Lawrence Home: claw@kanga.nu
> ----------(*) Other: coder@kanga.nu
> --=| A man is as sane as he is dangerous to his environment |=--
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>