-
Notifications
You must be signed in to change notification settings - Fork 12
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
Make end time match expected format (#143) #144
Conversation
Hey @aywaldron, I might be misunderstand the recent changes pushed here but I think it's doing something extra than was chatted about on the other ticket.
All of this conversion aside, shouldn't the value of this (assuming the original value is in nanoseconds) always give us a fractional number? Or said differently, we're splitting the fractional seconds off and then adding some offset to encompass the fractional time. That fractional time is always going to be at most 1 second so why not round the way mentioned in the other ticket? Specifically, split on I think we could really simplify both the start and end time code here to be in line with what's mentioned in the other ticket. Start time would split on Thoughts? Am I not understanding something above? |
@MJJoyce it is determining whether the second should be rounded up or down rather than always rounding up. That line of code will give you either 0 or 1 depending on the value of the nanoseconds, so its more accurate than always rounding up. Maybe I'm not understanding your concern with doing this? I thought it was a concern with breaking up the time string based on index rather than splitting on |
Per discussion with @MJJoyce , updating to always round up for end time and round down for start time to encapsulate the correct time range. |
#142 should be merged first. This branch has been rebased with changes in #142.
To test this fix works, check out this branch and follow steps 2-4 outlined in #143 .
Resolves #143