• Thomas Van Lenten's avatar
    Timestamp helper fix, Duration helper cleanup. · d0bc096b
    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.
    d0bc096b
GPBWellKnownTypes.m 8.78 KB