Home
last modified time | relevance | path

Searched refs:getEpochSecond (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKInstantPrinterParser.java105 {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/
DFileTime.java146 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/
DTCKInstant.java119 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 …]
DTCKClock_Fixed.java88 assertEquals(test.instant().getEpochSecond()*1000, test.millis()); in test_fixed_InstantZoneId()
DTCKClock_Tick.java181 assertEquals(instant.getEpochSecond() % 60, 0); in test_tickMinutes_ZoneId()
DTCKZonedDateTime.java2125 assertEquals(test.getEpochSecond(), expectedEpSec);
2133 assertEquals(test.getEpochSecond(), expectedEpSec - 3600);
2141 assertEquals(test.getEpochSecond(), expectedEpSec + 3600);
DTCKLocalTime.java2448 Instant.ofEpochSecond(-7200).getEpochSecond()},
2450 Instant.ofEpochSecond(-37800L).getEpochSecond()},
/libcore/ojluni/src/test/java/time/test/java/time/
DTestOffsetDateTime_instants.java288 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/
DZoneRules.java483 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/
DChronoZonedDateTimeImpl.java174 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
/libcore/ojluni/src/main/java/java/time/
DLocalDateTime.java207 return ofEpochSecond(now.getEpochSecond(), now.getNano(), offset); in now()
392 return ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offset); in ofInstant()
DInstant.java612 public long getEpochSecond() { in getEpochSecond() method in Instant
DOffsetDateTime.java322 …LocalDateTime ldt = LocalDateTime.ofEpochSecond(instant.getEpochSecond(), instant.getNano(), offse… in ofInstant()
DLocalTime.java358 long localSecond = instant.getEpochSecond() + offset.getTotalSeconds(); in ofInstant()
DLocalDate.java220 long epochSec = now.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later in now()