mx.DateTime と Zope DateTime の相互変換
2007.07.26
ZopeではScript(Python)等で利用しています.
mx.DateTime を ZopeDateTime に変換
def mxdt2zdt(o) :
return DateTime.DateTime(o.ticks())
ZopeDateTime を mx.DateTime に変換
def zdt2mxdt(o) :
return mx.DateTime.localtime(o.millis()/1000.0)
カテゴリー:技術情報メモ
