Python Timestamps Differing on App Engine Python 2.5 / 2.7 -


python datetime.fromtimestamp returns different value on app engine python 2.5 vs 2.7.

http://shell.appspot.com/

google app engine/1.6.6 python 2.5.2 (r252:60911, may 17 2011, 11:51:03)  [gcc 4.3.1]  >>> import datetime >>> print datetime.datetime.fromtimestamp(4102444800) 2100-01-01 00:00:00 

http://shell-27.appspot.com/

google app engine/1.6.6 python 2.7.2 (default, dec 14 2011, 14:36:31)  [gcc 4.4.3]  >>> import datetime >>> print datetime.datetime.fromtimestamp(4102444800) 1963-11-25 17:31:44 

the 2.5 instance returning desired value. missing?

2.5:

google app engine/1.6.6 python 2.5.2 (r252:60911, may 17 2011, 11:51:03)  [gcc 4.3.1]  >>> import sys >>> sys.maxint 9223372036854775807 

2.7:

google app engine/1.6.6 python 2.7.2 (default, dec 14 2011, 14:36:31)  [gcc 4.4.3]  >>> import sys >>> sys.maxint 2147483647 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -