[python-win32] Translating vbs GetObject("LDAP://...") to Pyt hon?

R. Alan Monroe amonroe at columbus.rr.com
Wed Nov 10 13:05:22 CET 2004


> | If I do type() on the variable I assign it to, it says 'time', and it
> | prints a sensible looking date like 10/25/04 11:18:59 to the screen.
> | But I can't figure out how to compare that to, say, time.time(). How
> | do I find out the number of elapsed days between the date it returns
> | and the current date?

> The pywin32 docs for PyTime state that calling int () on a
> PyTime object will convert it to the result as if you'd used
> time.time ().

Perfect, thanks!

Alan



More information about the Python-win32 mailing list