Re: epoch seconds from a datetime

2008-08-28 Thread Richard Rossel
On 28 ago, 14:25, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > On Thu, Aug 28, 2008 at 10:18 AM, Richard Rossel <[EMAIL PROTECTED]> wrote: > > Hi friends, > > I need a little help here, I 'm stuck with epoch calculation issue. > > I have this datetime: > > date_new = datetime(*time.strptime('2008010

Re: epoch seconds from a datetime

2008-08-28 Thread Chris Rebert
On Thu, Aug 28, 2008 at 10:18 AM, Richard Rossel <[EMAIL PROTECTED]> wrote: > Hi friends, > I need a little help here, I 'm stuck with epoch calculation issue. > I have this datetime: > date_new = datetime(*time.strptime('20080101T00','%Y%m%dT%H%M%S') > [0:6]) > This date_new is in UTC > Now I

epoch seconds from a datetime

2008-08-28 Thread Richard Rossel
Hi friends, I need a little help here, I 'm stuck with epoch calculation issue. I have this datetime: date_new = datetime(*time.strptime('20080101T00','%Y%m%dT%H%M%S') [0:6]) This date_new is in UTC Now I need to know the seconds since epoch of this new date, so I run this: seconds = int(time.m