Skip to content

Utilities to convert datetime to/from milliseconds. #297

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

Closed
wants to merge 1 commit into from

Conversation

estobbart
Copy link

Spawned from SO discussion

@behackett
Copy link
Member

Can you tell me what you are using these helpers for?

@behackett behackett self-assigned this Dec 9, 2015
@estobbart
Copy link
Author

It was a compound problem. When returning from json_utils a python datetime becomes aware even if by default in python it's naive. And a python datetime includes microseconds and the Date obj stores milliseconds. This made it so a dumps/loads can't be compared for this type, seems to be only this type.

I was hoping for utilities to help with this. We use a lot of dumps/loads roundtrips for testing.

@behackett
Copy link
Member

PYTHON-1111 tracks solving this problem, along with a number of other json_util issues.

@behackett behackett closed this Jul 12, 2016
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

Successfully merging this pull request may close these issues.

2 participants