Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Add time_precision option to datetime_to_epoch. #93

Merged
merged 2 commits into from
Dec 11, 2014

Conversation

tzonghao
Copy link
Contributor

When time_precision "m" or "u" was passed to write_points, _datetime_to_epoch needs to translate timestamps into milliseconds or microseconds accordingly.

@aviau
Copy link
Collaborator

aviau commented Dec 11, 2014

Looks good to me. We could add a test maybe?

@timtroendle Can you take a look at this please?

@aviau
Copy link
Collaborator

aviau commented Dec 11, 2014

@tzonghao The tests look good. Thank you for the quality PR :)
If you don't mind. I will wait a little more time for timtroendle to comment before I merge.

@tzonghao
Copy link
Contributor Author

@ReAzem No problem. DataFrame support is very nice to have. Glad to help.

@timtroendle
Copy link
Contributor

Yes, looks good to me. Nice!

aviau added a commit that referenced this pull request Dec 11, 2014
Add time_precision option to datetime_to_epoch. (Thanks @tzonghao)
@aviau aviau merged commit 0502fa2 into influxdata:master Dec 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants