Searched refs:nanosToAdd (Results 1 – 2 of 2) sorted by relevance
118 public Timestamp addNanos(long nanosToAdd) { in addNanos() argument119 return plus(0, nanosToAdd); in addNanos()172 private Timestamp plus(long secondsToAdd, long nanosToAdd) { in plus() argument173 if ((secondsToAdd | nanosToAdd) == 0) { in plus()177 epochSec = TimeUtils.checkedAdd(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()178 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()179 long nanoAdjustment = getNanos() + nanosToAdd; // safe int + NANOS_PER_SECOND in plus()
812 int nanosToAdd = 0; in MergeTimestamp()817 nanosToAdd = parsedFraction * SubsecondScalingFactors[subseconds.Length]; in MergeTimestamp()840 if (secondsToAdd < 0 && nanosToAdd > 0) in MergeTimestamp()843 nanosToAdd = nanosToAdd - Duration.NanosecondsPerSecond; in MergeTimestamp()845 if (secondsToAdd != 0 || nanosToAdd != 0) in MergeTimestamp()847 timestamp += new Duration { Nanos = nanosToAdd, Seconds = secondsToAdd }; in MergeTimestamp()