How to? Python dates to COM dates?

Syver Enstad syver at
Wed Nov 8 12:26:05 CET 2000

Sorry, found it on page 107 of the Win32 Python Programming book,
here's the answer if anyone else needs it.

def MakeComTime(ctime):
    return (ctime / 86400.0) + 25569.0
def MakeCtime(comtime):
    return (comtime - 25569.0) * 86400.0

"Syver Enstad" <syver at> wrote in message
news:JuaO5.142$cr6.1048 at
> I'm wondering how to transform a Python date to a VARIANT date?
> Anyone know? Thanks in advance.

More information about the Python-list mailing list