Re: [python-win32] how to best use datetime objects in pywin32?

2009-01-13 Thread Paul Moore
2009/1/13 Mark Hammond mhamm...@skippinet.com.au: So, my question is: Assuming we want to set a time object into a SYSTEMTIME or FILETIME structure, what should pywin32 do when faced with a timezone naïve object? I see only 2 options: * Given the SYSTEMTIME assumes UTC and the object is

Re: [python-win32] how to best use datetime objects in pywin32?

2009-01-13 Thread Vernon Cole
Great work, Jason! Maybe this would be a good time for a feature request. I am a fanatic about operating system independent code, which is weird because all of my open source code contributions are Windows specific. Go figure. First, let me say that I like Paul's third option the best. When I

Re: [python-win32] how to best use datetime objects in pywin32?

2009-01-13 Thread Jason R. Coombs
Thanks for the words of encouragement. -Original Message- From: Vernon Cole [mailto:vernondc...@gmail.com] Sent: Tuesday, 13 January, 2009 12:19 Second, I am frustrated with the fact that Python's datetime implementation is incomplete, since it lacks any standard way of getting a

Re: [python-win32] how to best use datetime objects in pywin32?

2009-01-13 Thread Mark Hammond
Thanks for the comments Paul. Is there a reason you don't see assuming a timezone of win32timezone.GetLocalTimeZone() as a reasonable option? Not really - I think I was just looking at it from the POV of the win32 structures. You make a good case for using the local time, but there may still