[Zope] Getting the epoch time as an integer

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Mon, 24 Jan 2000 18:08:32 +1100


>>> J C Lawrence wrote
> How do I get the current time as the number of seconds since the
> Epoch?

ZopeTime().timeTime()

from the canonical source:

    def timeTime(self):
        """Return the date/time as a floating-point number in UTC,
           in the format used by the python time module.
           Note that it is possible to create date/time values
           with DateTime that have no meaningful value to the
           time module."""
        return self._t