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

Timestamp helper fix, Duration helper cleanup. #2591

Merged
merged 1 commit into from
Jan 17, 2017

Conversation

thomasvl
Copy link
Contributor

  • The Timestamp proto does not allow for negative nanos fields, so the seconds
    must be shifted and a positive nanos then applied.
  • Tweak the helpers on Duration to make it clear there is no "base" time
    involved.
  • Update the unittests for duration and timestamp to cover positive and
    negative NSTimeIntervals and what their impact is on the protos.

- The Timestamp proto does not allow for negative nanos fields, so the seconds
  must be shifted and a positive nanos then applied.
- Tweak the helpers on Duration to make it clear there is no "base" time
  involved.
- Update the unittests for duration and timestamp to cover positive and
  negative NSTimeIntervals and what their impact is on the protos.
@thomasvl thomasvl merged commit eed9951 into protocolbuffers:master Jan 17, 2017
@thomasvl thomasvl deleted the objc_timestamps_take2 branch January 17, 2017 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants