Lines Matching refs:secs

146             long secs = unit.convert(instant.getEpochSecond(), TimeUnit.SECONDS);  in to()  local
147 if (secs == Long.MIN_VALUE || secs == Long.MAX_VALUE) { in to()
148 return secs; in to()
151 long r = secs + nanos; in to()
153 if (((secs ^ r) & (nanos ^ r)) < 0) { in to()
154 return (secs < 0) ? Long.MIN_VALUE : Long.MAX_VALUE; in to()
173 long secs = instant.getEpochSecond(); in toMillis() local
176 long r = secs * 1000; in toMillis()
177 long ax = Math.abs(secs); in toMillis()
179 if ((r / 1000) != secs) { in toMillis()
180 return (secs < 0) ? Long.MIN_VALUE : Long.MAX_VALUE; in toMillis()
232 long secs = 0L; in toInstant() local
236 secs = scale(value, SECONDS_PER_DAY, in toInstant()
240 secs = scale(value, SECONDS_PER_HOUR, in toInstant()
244 secs = scale(value, SECONDS_PER_MINUTE, in toInstant()
248 secs = value; in toInstant()
251 secs = Math.floorDiv(value, MILLIS_PER_SECOND); in toInstant()
256 secs = Math.floorDiv(value, MICROS_PER_SECOND); in toInstant()
261 secs = Math.floorDiv(value, NANOS_PER_SECOND); in toInstant()
266 if (secs <= MIN_SECOND) in toInstant()
268 else if (secs >= MAX_SECOND) in toInstant()
271 instant = Instant.ofEpochSecond(secs, nanos); in toInstant()
343 long secs = toInstant().getEpochSecond(); in compareTo() local
345 int cmp = Long.compare(secs, secsOther); in compareTo()
353 if (secs != MAX_SECOND && secs != MIN_SECOND) { in compareTo()
413 long secs = 0L; in toString() local
416 secs = unit.toSeconds(value); in toString()
418 secs = toInstant().getEpochSecond(); in toString()
423 if (secs >= -SECONDS_0000_TO_1970) { in toString()
425 long zeroSecs = secs - SECONDS_PER_10000_YEARS + SECONDS_0000_TO_1970; in toString()
432 long zeroSecs = secs + SECONDS_0000_TO_1970; in toString()