diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-09-08 17:02:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-08 17:02:43 -0400 |
commit | 5d35e60900bf74e095dd98904d07f144dbd8d521 (patch) | |
tree | c7699bddf95913a5d89ba0db8ec869a6e90e51a4 | |
parent | 14e74f6a21f2726d25e0e679c59d569f6bc8fe8e (diff) | |
parent | 161b9377405a2624cf0468bea75ae7a87950eca0 (diff) | |
download | protobuf-5d35e60900bf74e095dd98904d07f144dbd8d521.tar.gz protobuf-5d35e60900bf74e095dd98904d07f144dbd8d521.tar.bz2 protobuf-5d35e60900bf74e095dd98904d07f144dbd8d521.zip |
Merge pull request #2094 from thomasvl/update_wkt_comments
Fix error and add note about lossy issues
-rw-r--r-- | objectivec/GPBWellKnownTypes.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/objectivec/GPBWellKnownTypes.h b/objectivec/GPBWellKnownTypes.h index 96d51d9e..813c5043 100644 --- a/objectivec/GPBWellKnownTypes.h +++ b/objectivec/GPBWellKnownTypes.h @@ -54,7 +54,12 @@ NS_ASSUME_NONNULL_BEGIN /** The NSDate representation of this GPBTimestamp. */ @property(nonatomic, readwrite, strong) NSDate *date; -/** The NSTimeInterval representation of this GPBTimestamp. */ +/** + * The NSTimeInterval representation of this GPBTimestamp. + * + * @note: Not all second/nanos combinations can be represented in a + * NSTimeInterval, so getting this could be a lossy transform. + **/ @property(nonatomic, readwrite) NSTimeInterval timeIntervalSince1970; /** @@ -82,7 +87,12 @@ NS_ASSUME_NONNULL_BEGIN **/ @interface GPBDuration (GBPWellKnownTypes) -/** The NSTimeInterval representation of this GPBTimestamp. */ +/** + * The NSTimeInterval representation of this GPBDuration. + * + * @note: Not all second/nanos combinations can be represented in a + * NSTimeInterval, so getting this could be a lossy transform. + **/ @property(nonatomic, readwrite) NSTimeInterval timeIntervalSince1970; /** @@ -90,7 +100,7 @@ NS_ASSUME_NONNULL_BEGIN * * @param timeIntervalSince1970 Time interval to configure the GPBDuration with. * - * @return A newly initialized GPBTimestamp. + * @return A newly initialized GPBDuration. **/ - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970; |