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.java333 public static LocalTime of(int hour, int minute, int second, int nanoOfSecond) { in of() argument
337 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in of()
338 return create(hour, minute, second, nanoOfSecond); in of()
473 private static LocalTime create(int hour, int minute, int second, int nanoOfSecond) { in create() argument
474 if ((minute | second | nanoOfSecond) == 0) { in create()
477 return new LocalTime(hour, minute, second, nanoOfSecond); in create()
488 private LocalTime(int hour, int minute, int second, int nanoOfSecond) { in LocalTime() argument
492 this.nano = nanoOfSecond; in LocalTime()
937 public LocalTime withNano(int nanoOfSecond) { in withNano() argument
938 if (this.nano == nanoOfSecond) { in withNano()
[all …]
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()
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.java656 public Duration withNanos(int nanoOfSecond) { in withNanos() argument
657 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond); in withNanos()
658 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/annotations/hiddenapi/java/time/
DOffsetDateTime.java117 int nanoOfSecond, in of() argument
265 public java.time.OffsetDateTime withNano(int nanoOfSecond) { in withNano() argument
DDuration.java177 public java.time.Duration withNanos(int nanoOfSecond) { in withNanos() argument
/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…