/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKInstantPrinterParser.java | 105 {Instant.MAX.getEpochSecond(), 999999999, "+1000000000-12-31T23:59:59.999999999Z"}, in data_printGrouped() 106 {Instant.MIN.getEpochSecond(), 0, "-1000000000-01-01T00:00:00Z"}, in data_printGrouped() 183 … {9, Instant.MAX.getEpochSecond(), 999999999, "+1000000000-12-31T23:59:59.999999999Z"}, in data_printDigits() 184 {9, Instant.MIN.getEpochSecond(), 0, "-1000000000-01-01T00:00:00.000000000Z"}, in data_printDigits() 219 {Instant.MAX.getEpochSecond(), 999999999, "+1000000000-12-31T23:59:59.999999999Z"}, in data_parse_digits() 220 {Instant.MIN.getEpochSecond(), 0, "-1000000000-01-01T00:00:00.000000000Z"}, in data_parse_digits()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 146 long secs = unit.convert(instant.getEpochSecond(), TimeUnit.SECONDS); in to() 173 long secs = instant.getEpochSecond(); in toMillis() 312 return TimeUnit.SECONDS.toDays(toInstant().getEpochSecond()); in toDays() 320 return TimeUnit.SECONDS.toNanos(toInstant().getEpochSecond() in toExcessNanos() 343 long secs = toInstant().getEpochSecond(); in compareTo() 344 long secsOther = other.toInstant().getEpochSecond(); in compareTo() 418 secs = toInstant().getEpochSecond(); in toString()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKInstant.java | 119 private static final long MIN_SECOND = Instant.MIN.getEpochSecond(); 120 private static final long MAX_SECOND = Instant.MAX.getEpochSecond(); 164 assertEquals(instant.getEpochSecond(), epochSecs); in check() 232 assertEquals(t.getEpochSecond(), i); 245 assertEquals(t.getEpochSecond(), i); 250 assertEquals(t.getEpochSecond(), i - 1); 255 assertEquals(t.getEpochSecond(), i); 264 assertEquals(test.getEpochSecond(), 1); 301 assertEquals(t.getEpochSecond(), expectedSeconds); 333 assertEquals(t.getEpochSecond(), expectedEpochSeconds); [all …]
|
D | TCKClock_Fixed.java | 88 assertEquals(test.instant().getEpochSecond()*1000, test.millis()); in test_fixed_InstantZoneId()
|
D | TCKClock_Tick.java | 181 assertEquals(instant.getEpochSecond() % 60, 0); in test_tickMinutes_ZoneId()
|
D | TCKZonedDateTime.java | 2125 assertEquals(test.getEpochSecond(), expectedEpSec); 2133 assertEquals(test.getEpochSecond(), expectedEpSec - 3600); 2141 assertEquals(test.getEpochSecond(), expectedEpSec + 3600);
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 87 cmp(Instant.MIN, Instant.MIN.getEpochSecond() - 1, SECONDS, 1); in main() 88 cmp(Instant.MIN, Instant.MIN.getEpochSecond() - 100, SECONDS, 1); in main() 89 cmp(Instant.MIN, Instant.MIN.getEpochSecond(), SECONDS, 0); in main() 95 cmp(Instant.MAX, Instant.MAX.getEpochSecond() + 1, SECONDS, -1); in main() 96 cmp(Instant.MAX, Instant.MAX.getEpochSecond() + 100, SECONDS, -1); in main() 97 cmp(Instant.MAX, Instant.MAX.getEpochSecond(), SECONDS, 0); in main() 302 if (secs != instant.getEpochSecond() || (int)nanos != instant.getNano()) { in eqTime()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 288 assertEquals(test.getEpochSecond(), 0); in test_toInstant_19700101() 295 assertEquals(test.getEpochSecond(), 0); in test_toInstant_19700101_oneNano() 302 assertEquals(test.getEpochSecond(), -1); in test_toInstant_19700101_minusOneNano() 309 assertEquals(test.getEpochSecond(), 24L * 60L * 60L); in test_toInstant_19700102() 316 assertEquals(test.getEpochSecond(), -24L * 60L * 60L); in test_toInstant_19691231()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRules.java | 483 long epochSec = instant.getEpochSecond(); in getOffset() 754 long epochSec = instant.getEpochSecond(); in getStandardOffset() 840 long epochSec = instant.getEpochSecond(); in nextTransition() 887 long epochSec = instant.getEpochSecond(); in previousTransition()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTimeImpl.java | 174 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
|
/libcore/ojluni/src/main/java/java/time/ |
D | ZonedDateTime.java | 403 return create(instant.getEpochSecond(), instant.getNano(), zone); in ofInstant() 1235 return create(instant.getEpochSecond(), instant.getNano(), zone); in with()
|
D | LocalDateTime.java | 207 return ofEpochSecond(now.getEpochSecond(), now.getNano(), offset); in now() 392 return ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offset); in ofInstant()
|
D | OffsetTime.java | 254 … long localSecond = instant.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later in ofInstant()
|
D | Instant.java | 612 public long getEpochSecond() { in getEpochSecond() method in Instant
|
D | OffsetDateTime.java | 322 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
|
D | LocalTime.java | 272 … long localSecond = now.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later in now()
|
D | LocalDate.java | 220 long epochSec = now.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later in now()
|