Closed EpicCodeWizard closed 2 years ago
I think the current implementation of WinRT date/time just uses ints. It would be nice if it was compatible with Python datetime
though.
datetime conversion was added in v1.0.0b6
The windows APIs I timezone aware, so it is recommend to use datetime.now(timezone.utc)
and avoid "naive" datetime object (see https://docs.python.org/3/library/datetime.html).
I have the following code sample (without the imports):
When I execute the code, I receive this error:
What am I doing wrong/How do I fix this?