2

変換中に文字列を DateTime に変換する必要があります。このようなもの:

[set-startDate]
blueprint = collective.transmogrifier.sections.inserter
condition = python: item.has_key('startDate')
key = string:startDate
value = python: <conversion to DateTime>

どうすればこれを達成できますか?

4

1 に答える 1

2

collective.transmogrifierのドキュメントを見ると、私の答えが見つかりました。

[set-startDate]
blueprint = collective.transmogrifier.sections.inserter
condition = python: item.has_key('startDate')
key = string:startDate
value = python: modules['DateTime'].DateTime(item['startDate'])
于 2011-11-10T17:39:01.923 に答える