Home
last modified time | relevance | path

Searched refs:nanoOfSecond (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java332 public static LocalTime of(int hour, int minute, int second, int nanoOfSecond) { in of() argument
336 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in of()
337 return create(hour, minute, second, nanoOfSecond); in of()
450 private static LocalTime create(int hour, int minute, int second, int nanoOfSecond) { in create() argument
451 if ((minute | second | nanoOfSecond) == 0) { in create()
454 return new LocalTime(hour, minute, second, nanoOfSecond); in create()
465 private LocalTime(int hour, int minute, int second, int nanoOfSecond) { in LocalTime() argument
469 this.nano = nanoOfSecond; in LocalTime()
914 public LocalTime withNano(int nanoOfSecond) { in withNano() argument
915 if (this.nano == nanoOfSecond) { in withNano()
[all …]
DZonedDateTime.java332 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { in of() argument
333 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of()
446 private static ZonedDateTime create(long epochSecond, int nanoOfSecond, ZoneId zone) { in create() argument
448 …Instant instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond); // TODO: rules should be quer… in create()
450 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset); in create()
550 int nanoOfSecond = temporal.get(NANO_OF_SECOND); in from() local
551 return create(epochSecond, nanoOfSecond, zone); in from()
1486 public ZonedDateTime withNano(int nanoOfSecond) { in withNano() argument
1487 return resolveLocal(dateTime.withNano(nanoOfSecond)); in withNano()
DLocalDateTime.java279 …ime of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) { in of() argument
281 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond); in of()
354 …eTime of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) { in of() argument
356 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond); in of()
410 … public static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) { in ofEpochSecond() argument
412 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in ofEpochSecond()
417 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + nanoOfSecond); in ofEpochSecond()
1088 public LocalDateTime withNano(int nanoOfSecond) { in withNano() argument
1089 LocalTime newTime = time.withNano(nanoOfSecond); in withNano()
DInstant.java368 int nanoOfSecond = temporal.get(NANO_OF_SECOND); in from() local
369 return Instant.ofEpochSecond(instantSecs, nanoOfSecond); in from()
400 private static Instant create(long seconds, int nanoOfSecond) { in create() argument
401 if ((seconds | nanoOfSecond) == 0) { in create()
407 return new Instant(seconds, nanoOfSecond); in create()
DOffsetTime.java229 …public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)… in of() argument
230 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset); in of()
789 public OffsetTime withNano(int nanoOfSecond) { in withNano() argument
790 return with(time.withNano(nanoOfSecond), offset); in withNano()
DOffsetDateTime.java299 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { in of() argument
300 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of()
1099 public OffsetDateTime withNano(int nanoOfSecond) { in withNano() argument
1100 return with(dateTime.withNano(nanoOfSecond), offset); in withNano()
DDuration.java654 public Duration withNanos(int nanoOfSecond) { in withNanos() argument
655 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond); in withNanos()
656 return create(seconds, nanoOfSecond); in withNanos()
DLocalDate.java1755 public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { in atTime() argument
1756 return atTime(LocalTime.of(hour, minute, second, nanoOfSecond)); in atTime()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZonedDateTime.java2418 int hour, int minute, int second, int nanoOfSecond) {
2419 … return LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
2424 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) {
2425 …trict(LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond), offset, zoneI…