[BangPypers] Timestamp error

2011-11-10 Thread Shashidhar Paragonda
Dear Python hackers,

   >>> I am facing *ValueError : **timestamp out of range for
platform time_t
*
*   >>> *I am working on Zope v. 2.8.11 with Python v2.4.4 on
Debian v6.0 Squeeze.
   >>> I get this error when I extract some parameters and
values from database.
   >>> can one one help me, thank you in advance

-- 
---
Regards,

Shashidhar N.Paragonda
shashidha...@gmail.com
+919449073835
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Timestamp error

2011-11-10 Thread Dhananjay Nene
On Thu, Nov 10, 2011 at 5:05 PM, Shashidhar Paragonda <
shashidha...@gmail.com> wrote:

> Dear Python hackers,
>
>   >>> I am facing *ValueError : **timestamp out of range for
> platform time_t
> *
> *   >>> *I am working on Zope v. 2.8.11 with Python v2.4.4 on
> Debian v6.0 Squeeze.
>   >>> I get this error when I extract some parameters and
> values from database.
>   >>> can one one help me, thank you in advance
>

It means you attempted to create a timestamp beyond what the underlying
platform supports (most likely a date too far out or far back). Perhaps if
you attached the specific line of code with the actual values being passed
to the constructor that we could replicate, it would help provide a more
elaborate answer.

>
> --
> ---
> Regards,
>
> Shashidhar N.Paragonda
> shashidha...@gmail.com
> +919449073835
> ___
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
--
http://blog.dhananjaynene.com twitter: @dnene
google plus:
http://gplus.to/dhananjaynene
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Timestamp error

2011-11-10 Thread Shashidhar Paragonda
Hello Dhananjay,

>>> Here is code
>>> def _setCookie(
self, bid, REQUEST, remove=0, now=time.time, strftime=time.strftime,
gmtime=time.gmtime
):
""" """
expires = None
if remove:
expires = "Sun, 10-May-1971 11:59:00 GMT"
elif self.cookie_life_days:
expires = now() + self.cookie_life_days * 86400
print "first expires value =  %s" % expires
# Wdy, DD-Mon- HH:MM:SS GMT
print "I am in browser id manager file time= %s " %
strftime('%a %d-%b-%Y %H:%M:%S GMT',gmtime(expires))
expires = strftime('%a %d-%b-%Y %H:%M:%S GMT',gmtime(expires))
print "second expires value = %s" % expires

  This is cookie function.


On Thu, Nov 10, 2011 at 5:16 PM, Dhananjay Nene wrote:

> On Thu, Nov 10, 2011 at 5:05 PM, Shashidhar Paragonda <
> shashidha...@gmail.com> wrote:
>
> > Dear Python hackers,
> >
> >   >>> I am facing *ValueError : **timestamp out of range for
> > platform time_t
> > *
> > *   >>> *I am working on Zope v. 2.8.11 with Python v2.4.4 on
> > Debian v6.0 Squeeze.
> >   >>> I get this error when I extract some parameters and
> > values from database.
> >   >>> can one one help me, thank you in advance
> >
>
> It means you attempted to create a timestamp beyond what the underlying
> platform supports (most likely a date too far out or far back). Perhaps if
> you attached the specific line of code with the actual values being passed
> to the constructor that we could replicate, it would help provide a more
> elaborate answer.
>
> >
> > --
> > ---
> > Regards,
> >
> > Shashidhar N.Paragonda
> > shashidha...@gmail.com
> > +919449073835
> > ___
> > BangPypers mailing list
> > BangPypers@python.org
> > http://mail.python.org/mailman/listinfo/bangpypers
> >
>
>
>
> --
>
> --
> http://blog.dhananjaynene.com twitter: @dnene
> google plus:
> http://gplus.to/dhananjaynene
> ___
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
---
Regards,

Shashidhar N.Paragonda
shashidha...@gmail.com
+919449073835
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers