aboutsummaryrefslogtreecommitdiffhomepage
path: root/objectivec/google/protobuf/Duration.pbobjc.h
diff options
context:
space:
mode:
Diffstat (limited to 'objectivec/google/protobuf/Duration.pbobjc.h')
-rw-r--r--objectivec/google/protobuf/Duration.pbobjc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/objectivec/google/protobuf/Duration.pbobjc.h b/objectivec/google/protobuf/Duration.pbobjc.h
index 8f9b3515..fa91e223 100644
--- a/objectivec/google/protobuf/Duration.pbobjc.h
+++ b/objectivec/google/protobuf/Duration.pbobjc.h
@@ -55,16 +55,16 @@ typedef GPB_ENUM(GPBDuration_FieldNumber) {
* or "month". It is related to Timestamp in that the difference between
* two Timestamp values is a Duration and it can be added or subtracted
* from a Timestamp. Range is approximately +-10,000 years.
- *
+ *
* Example 1: Compute Duration from two Timestamps in pseudo code.
- *
+ *
* Timestamp start = ...;
* Timestamp end = ...;
* Duration duration = ...;
- *
+ *
* duration.seconds = end.seconds - start.seconds;
* duration.nanos = end.nanos - start.nanos;
- *
+ *
* if (duration.seconds < 0 && duration.nanos > 0) {
* duration.seconds += 1;
* duration.nanos -= 1000000000;
@@ -72,16 +72,16 @@ typedef GPB_ENUM(GPBDuration_FieldNumber) {
* duration.seconds -= 1;
* duration.nanos += 1000000000;
* }
- *
+ *
* Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
- *
+ *
* Timestamp start = ...;
* Duration duration = ...;
* Timestamp end = ...;
- *
+ *
* end.seconds = start.seconds + duration.seconds;
* end.nanos = start.nanos + duration.nanos;
- *
+ *
* if (end.nanos < 0) {
* end.seconds -= 1;
* end.nanos += 1000000000;