Home
last modified time | relevance | path

Searched refs:nano (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java223 private final int nano; field in LocalTime
469 this.nano = nanoOfSecond; in LocalTime()
657 case NANO_OF_SECOND: return nano; in get0()
659 case MICRO_OF_SECOND: return nano / 1000; in get0()
661 case MILLI_OF_SECOND: return nano / 1000_000; in get0()
710 return nano; in getNano()
868 return create(hour, minute, second, nano); in withHour()
885 return create(hour, minute, second, nano); in withMinute()
902 return create(hour, minute, second, nano); in withSecond()
915 if (this.nano == nanoOfSecond) { in withNano()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKInstantPrinterParser.java111 public void test_print_grouped(long instantSecs, int nano, String expected) { in test_print_grouped() argument
112 Instant instant = Instant.ofEpochSecond(instantSecs, nano); in test_print_grouped()
189 … public void test_print_digits(int fractionalDigits, long instantSecs, int nano, String expected) { in test_print_digits() argument
190 Instant instant = Instant.ofEpochSecond(instantSecs, nano); in test_print_digits()
225 public void test_parse_digitsMinusOne(long instantSecs, int nano, String input) { in test_parse_digitsMinusOne() argument
226 Instant expected = Instant.ofEpochSecond(instantSecs, nano); in test_parse_digitsMinusOne()
234 public void test_parse_digitsNine(long instantSecs, int nano, String input) { in test_parse_digitsNine() argument
237 Instant expected = Instant.ofEpochSecond(instantSecs, nano); in test_parse_digitsNine()
DTCKDateTimeFormatters.java451 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoLocalTime() argument
453 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoLocalTime()
468 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoLocalTime() argument
471 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoLocalTime()
521 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoOffsetTime() argument
523 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoOffsetTime()
538 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoOffsetTime() argument
541 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoOffsetTime()
591 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoTime() argument
593 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoTime()
[all …]
DTCKDateTimeParseResolver.java602 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToTime() argument
607 .parseDefaulting(NANO_OF_SECOND, nano).toFormatter(); in test_resolveFourToTime()
629 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveThreeToTime() argument
640 …uals(accessor.query(TemporalQueries.localTime()), expectedTime.minusNanos(nano), "ResolverStyle: "… in test_resolveThreeToTime()
655 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToDateTime() argument
661 .parseDefaulting(NANO_OF_SECOND, nano).toFormatter(); in test_resolveFourToDateTime()
/libcore/ojluni/src/main/java/java/sql/
DTimestamp.java88 int hour, int minute, int second, int nano) { in Timestamp() argument
90 if (nano > 999999999 || nano < 0) { in Timestamp()
93 nanos = nano; in Timestamp()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java654 …eateInstant(int year, int month, int day, int hour, int min, int sec, int nano, ZoneOffset offset)… in createInstant() argument
655 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()
658 …teTime createZDT(int year, int month, int day, int hour, int min, int sec, int nano, ZoneId zone) { in createZDT() argument
659 return LocalDateTime.of(year, month, day, hour, min, sec, nano).atZone(zone); in createZDT()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDateTime.java3278 private LocalDateTime dtEpoch(int hour, int min, int sec, int nano) {
3279 return LocalDateTime.of(1970, 1, 1, hour, min, sec, nano);
3282 private LocalDateTime dt(int year, int month, int day, int hour, int min, int sec, int nano) {
3283 return LocalDateTime.of(year, month, day, hour, min, sec, nano);
DTCKLocalTime.java2653 private LocalTime time(int hour, int min, int sec, int nano) {
2654 return LocalTime.of(hour, min, sec, nano);
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java3276 int nano = (nanoVal != null ? nanoVal.intValue() : 0); in parse() local
3278 if (hour == 24 && min == 0 && sec == 0 && nano == 0) { in parse()
3296 return context.setParsedField(NANO_OF_SECOND, nano, position, successPos); in parse()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java1095 …eateInstant(int year, int month, int day, int hour, int min, int sec, int nano, ZoneOffset offset)… in createInstant() argument
1096 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()