[IronPython] Problems with System.DateTime in RC1, and UtcNow in all 2.0 builds

Phil Vacca phil.vacca at gmail.com
Fri Oct 24 22:57:38 CEST 2008


Many thanks for the quick response!

The "get_" functions are only a bug?  I guess I have some code to change...

-Phil

On Fri, Oct 24, 2008 at 2:55 PM, Curt Hagenlocher <curt at hagenlocher.org> wrote:
> "UtcNow" returns a DateTime, so when you import it into your namespace,
> you're importing a DateTime instead of some kind of property reference.
>  This is by design.  The proper usage is
> from System import DateTime
> DateTime.UtcNow
> This is also consistent with usage under C#.
> I think the ability to import "get_UtcNow" was a bug that has been fixed for
> the RC.



More information about the Ironpython-users mailing list