• Thomas Van Lenten's avatar
    Timestamp helper fix, Duration helper cleanup. · 4aa2e931
    Thomas Van Lenten authored
    - 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.
    4aa2e931
GPBWellKnownTypes.h 8.88 KB