stuck on COM interface to Word
Mark Hammond
MHammond at skippinet.com.au
Tue Aug 3 08:15:49 EDT 1999
Nikolai Kirsebom wrote in message <37a6d12b.192256 at news.mch.sni.de>...
>In Arpad's example on *Last print date*, the returned <time object> is
>converted to an integer using the function *int*. On my installation
>I get the error: 'ValueError: illegal value'.
This (probably) means the date is before 1970, the Python time module epoch.
>Should the *int* function be able to convert the <time object> and if
>so - is there something I've missed out ?
You can either use the builtin methods of the time object (documented in the
help file) or if you want to use dates seriously, get mxDateTime, which has
a function for converting from a COM date.
Mark.
More information about the Python-list
mailing list