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

/libcore/ojluni/src/main/java/java/time/
H A DLocalTime.java328 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
332 public static LocalTime of(int hour, int minute, int second, int nanoOfSecond) { argument
336 NANO_OF_SECOND.checkValidValue(nanoOfSecond);
337 return create(hour, minute, second, nanoOfSecond);
447 * @param nanoOfSecond the nano-of-second to represent, validated from 0 to 999,999,999
450 private static LocalTime create(int hour, int minute, int second, int nanoOfSecond) { argument
451 if ((minute | second | nanoOfSecond) == 0) {
454 return new LocalTime(hour, minute, second, nanoOfSecond);
463 * @param nanoOfSecond the nano-of-second to represent, validated from 0 to 999,999,999
465 private LocalTime(int hour, int minute, int second, int nanoOfSecond) { argument
914 withNano(int nanoOfSecond) argument
[all...]
H A DInstant.java368 int nanoOfSecond = temporal.get(NANO_OF_SECOND);
369 return Instant.ofEpochSecond(instantSecs, nanoOfSecond);
397 * @param nanoOfSecond the nano-of-second, from 0 to 999,999,999
400 private static Instant create(long seconds, int nanoOfSecond) { argument
401 if ((seconds | nanoOfSecond) == 0) {
407 return new Instant(seconds, nanoOfSecond);
H A DLocalDateTime.java274 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
279 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) { argument
281 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond);
349 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
354 public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) { argument
356 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond);
404 * @param nanoOfSecond the nanosecond within the second, from 0 to 999,999,999
410 public static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) { argument
412 NANO_OF_SECOND.checkValidValue(nanoOfSecond);
417 LocalTime time = LocalTime.ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + nanoOfSecond);
1088 withNano(int nanoOfSecond) argument
[all...]
H A DOffsetTime.java224 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
229 public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { argument
230 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset);
785 * @param nanoOfSecond the nano-of-second to set in the result, from 0 to 999,999,999
789 public OffsetTime withNano(int nanoOfSecond) { argument
790 return with(time.withNano(nanoOfSecond), offset);
H A DZonedDateTime.java324 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
332 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) {
333 LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
441 * @param nanoOfSecond the nanosecond within the second, from 0 to 999,999,999
446 private static ZonedDateTime create(long epochSecond, int nanoOfSecond, ZoneId zone) { argument
448 Instant instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond); // TODO: rules should be queryable by epochSeconds
450 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset);
550 int nanoOfSecond = temporal.get(NANO_OF_SECOND);
551 return create(epochSecond, nanoOfSecond, zone);
1482 * @param nanoOfSecond th
330 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) argument
1486 withNano(int nanoOfSecond) argument
[all...]
H A DOffsetDateTime.java291 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
299 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) {
300 LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond);
1095 * @param nanoOfSecond the nano-of-second to set in the result, from 0 to 999,999,999
1099 public OffsetDateTime withNano(int nanoOfSecond) { argument
1100 return with(dateTime.withNano(nanoOfSecond), offset);
297 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) argument
H A DDuration.java650 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
654 public Duration withNanos(int nanoOfSecond) { argument
655 NANO_OF_SECOND.checkValidIntValue(nanoOfSecond);
656 return create(seconds, nanoOfSecond);
H A DLocalDate.java1751 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
1755 public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { argument
1756 return atTime(LocalTime.of(hour, minute, second, nanoOfSecond));
/libcore/ojluni/src/test/java/time/tck/java/time/
H A 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 return ZonedDateTime.ofStrict(LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond), offset, zoneId);
2416 dateTime( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument
2422 dateTime( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) argument

Completed in 904 milliseconds