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.cs813 int secondsToAdd = 0; in MergeTimestamp()
831 secondsToAdd = sign * totalMinutes * 60; in MergeTimestamp()
834 if (secondsToAdd < 0 && nanosToAdd > 0) in MergeTimestamp()
836 secondsToAdd++; in MergeTimestamp()
839 if (secondsToAdd != 0 || nanosToAdd != 0) in MergeTimestamp()
841 timestamp += new Duration { Nanos = nanosToAdd, Seconds = secondsToAdd }; in MergeTimestamp()