コード例 #1
0
ファイル: gnarl.py プロジェクト: aperezdc/gnarl
 def today(cls):
     from delorean.interface import now
     d = now()
     d.truncate("day")
     return cls(d.datetime, d.timezone)
コード例 #2
0
ファイル: gnarl.py プロジェクト: aperezdc/gnarl
 def now(cls):
     from delorean.interface import now
     d = now()
     d.truncate("second")
     return cls(d.datetime, d.timezone)