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

Data not getting added when given past datetime, but works for datetime of today. #6

Closed
ghost opened this issue Mar 1, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 1, 2018

Below are the things i tried to add to graphite.
Can anyone tell me where i am going wrong? The format is the same at the end.

#Does not work
val = datetime.strptime(strDatetime, '%m-%d-%Y %H:%M:%S').timestamp() + 0.1111111

#works
val = datetime.now().timestamp() + 0.0000011

@benhoyt
Copy link
Owner

benhoyt commented Mar 2, 2018

Hmm, these both return a float for me, so I'm not sure why one would work and the other not. I don't think this is a bug in graphyte.

@benhoyt benhoyt closed this as completed Mar 2, 2018
@benhoyt
Copy link
Owner

benhoyt commented Mar 2, 2018

If you have a full program test case and can detail the errors you're seeing so others can reproduce it, that might be helpful.

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