lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb in google-cloud-monitoring-0.23.2 vs lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb in google-cloud-monitoring-0.24.0

- old
+ new

@@ -52,9 +52,15 @@ # end.nanos += 1000000000; # } else if (end.nanos >= 1000000000) { # end.seconds += 1; # end.nanos -= 1000000000; # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) # @!attribute [rw] seconds # @return [Integer] # Signed seconds of the span of time. Must be from -315,576,000,000 # to +315,576,000,000 inclusive. # @!attribute [rw] nanos \ No newline at end of file