[IronPython] Import Now

Davy Mitchell daftspaniel at gmail.com
Sun Oct 7 22:25:33 CEST 2007


IronPython console: IronPython 2.0A4 (2.0.10904.02) on .NET 2.0.50727.312
Copyright (c) Microsoft Corporation. All rights reserved.
>>> from System.DateTime import Now
>>> print Now
07/10/2007 21:23:20
>>> print "a few seconds later" + Now.ToString()
a few seconds later07/10/2007 21:23:20
>>> from System.DateTime import Now
>>> print Now
07/10/2007 21:24:02
>>>

Huh?!??! :-)

-- 
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel
needgod.com



More information about the Ironpython-users mailing list