[egenix-users] comparing DateTime types

Max M maxm at mxm.dk
Thu Feb 21 17:15:04 CET 2002


Hi

This works as I expect:
type(mx.DateTime.now()) == type(mx.DateTime.DateTime(2002))
 >>> 1

But this doesn't:
type(mx.DateTime.now()) == type(mx.DateTime.DateTimeType)
 >>> 0

Do I have to compare instances? I would have thought that comparing with 
the "DateTimeType" directly would suffice.

regards Max M




More information about the egenix-users mailing list