Create pywintypes.Time from an mx.DateTime.DateTime

Mark McEahern marklists at mceahern.com
Fri May 24 11:33:00 EDT 2002


[Mark Hammond]
> It can also be initialized with a standard Python "time tuple", as used 
> by the time module.  I am not sure of the semantics of the mx objects, 
> but I am sure they would allow you to get such a tuple very simply.

True dat:

  import mx.DateTime
  t = mx.DateTime.now()
  t.tuple()

// m
-






More information about the Python-list mailing list