Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when converting to UNIX time under Windows #23

Open
cl-dev opened this issue Apr 9, 2017 · 0 comments
Open

Exception when converting to UNIX time under Windows #23

cl-dev opened this issue Apr 9, 2017 · 0 comments

Comments

@cl-dev
Copy link

cl-dev commented Apr 9, 2017

The method Context.datetime_to_str uses strftime("%s.000000000") to convert the timestamp to the UNIX format, which doesn't work under Windows.
Use dt.timestamp() instead, which is portable across platforms.

Note: the timestamp function is only available in Python 3.3+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant