Home
last modified time | relevance | path

Searched refs:secondsToAdd (Results 1 – 2 of 2) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java172 private Timestamp plus(long secondsToAdd, long nanosToAdd) { in plus() argument
173 if ((secondsToAdd | nanosToAdd) == 0) { in plus()
176 long epochSec = TimeUtils.checkedAdd(getSeconds(), secondsToAdd); in plus()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs819 int secondsToAdd = 0; in MergeTimestamp()
837 secondsToAdd = sign * totalMinutes * 60; in MergeTimestamp()
840 if (secondsToAdd < 0 && nanosToAdd > 0) in MergeTimestamp()
842 secondsToAdd++; in MergeTimestamp()
845 if (secondsToAdd != 0 || nanosToAdd != 0) in MergeTimestamp()
847 timestamp += new Duration { Nanos = nanosToAdd, Seconds = secondsToAdd }; in MergeTimestamp()