Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java334 public static LocalTime of(int hour, int minute, int second, int nanoOfSecond) { in of() argument
338 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in of()
339 return create(hour, minute, second, nanoOfSecond); in of()
474 private static LocalTime create(int hour, int minute, int second, int nanoOfSecond) { in create() argument
475 if ((minute | second | nanoOfSecond) == 0) { in create()
478 return new LocalTime(hour, minute, second, nanoOfSecond); in create()
489 private LocalTime(int hour, int minute, int second, int nanoOfSecond) { in LocalTime() argument
493 this.nano = nanoOfSecond; in LocalTime()
937 public LocalTime withNano(int nanoOfSecond) { in withNano() argument
938 if (this.nano == nanoOfSecond) { in withNano()
[all …]
DZonedDateTime.java333 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { in of() argument
334 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of()
447 private static ZonedDateTime create(long epochSecond, int nanoOfSecond, ZoneId zone) { in create() argument
449 …Instant instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond); // TODO: rules should be quer… in create()
451 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset); in create()
552 int nanoOfSecond = temporal.get(NANO_OF_SECOND); in from() local
553 return create(epochSecond, nanoOfSecond, zone); in from()
1485 public ZonedDateTime withNano(int nanoOfSecond) { in withNano() argument
1486 return resolveLocal(dateTime.withNano(nanoOfSecond)); in withNano()
DLocalDateTime.java280 …ime of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) { in of() argument
282 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond); in of()
355 …eTime of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) { in of() argument
357 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond); in of()
411 … public static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) { in ofEpochSecond() argument
413 NANO_OF_SECOND.checkValidValue(nanoOfSecond); in ofEpochSecond()
418 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + nanoOfSecond); in ofEpochSecond()
1084 public LocalDateTime withNano(int nanoOfSecond) { in withNano() argument
1085 LocalTime newTime = time.withNano(nanoOfSecond); in withNano()
DInstant.java369 int nanoOfSecond = temporal.get(NANO_OF_SECOND); in from() local
370 return Instant.ofEpochSecond(instantSecs, nanoOfSecond); in from()
401 private static Instant create(long seconds, int nanoOfSecond) { in create() argument
402 if ((seconds | nanoOfSecond) == 0) { in create()
408 return new Instant(seconds, nanoOfSecond); in create()
DOffsetTime.java230 …public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)… in of() argument
231 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset); in of()
790 public OffsetTime withNano(int nanoOfSecond) { in withNano() argument
791 return with(time.withNano(nanoOfSecond), offset); in withNano()
DOffsetDateTime.java300 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { in of() argument
301 … 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.java657 public Duration withNanos(int nanoOfSecond) { in withNanos() argument
658 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond); in withNanos()
659 return create(seconds, nanoOfSecond); in withNanos()
DLocalDate.java1880 public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { in atTime() argument
1881 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.java2413 int hour, int minute, int second, int nanoOfSecond) {
2414 … return LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
2419 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) {
2420 …trict(LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond), offset, zoneI…