本日のロスタイム

march

2007年10月25日 23:56


なんでFePy(IronPython)だとエポックタイムが1970-01-01じゃなくて0001-01-01なんだよ。
ValueError: year is too low でしばらく悩む。
コマンドラインで手軽に確認するときは、元々入れていたActivePythonを使っていたので確認が遅れた。
---
ActivePython 2.4.3 Build 12 (ActiveState Software Inc.) based on
Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.gmtime(0)
(1970, 1, 1, 0, 0, 0, 3, 1, 0)
---
IronPython 1.1 (1.1) on .NET 2.0.50727.832
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import time
>>> time.gmtime(0)
(1, 1, 1, 0, 0, 0, 0, 1, -1)
---
参考:http://saekiyoshiyasu.org/pyb/pyblosxom.cgi/programming/python/gettimefromntp-2007-06-13-00-34.html
最初に気づいた人はえらいと思う。

他にも、DLLのバージョンが0.9.0.0だから安心していたら、同じバージョン番号で新しい物があったりとか、
いつものメニューも楽しくこなしています。