[Zope] Getting the epoch time as an integer

J C Lawrence claw@kanga.nu
Sun, 23 Jan 2000 23:14:16 -0800


On Sun, 23 Jan 2000 23:00:04 -0800 
J C Lawrence <claw@kanga.nu> wrote:

> How do I get the current time as the number of seconds since the
> Epoch?

Answering my own question:

  _.int(ZopeTime)

You appear to be able to pick whether that is in localtime:

  _.int(ZopeTime)

or GMT terms:

  _.int(ZopeTime ('GMT')
  
Perhaps the maintainer of the dateTime HOW-TO would add this data to
the HOW-TO?

-- 
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--