Lines Matching refs:second

105  * often viewed as year-month-day-hour-minute-second. Other date and time fields,
213 * day, hour and minute, setting the second and nanosecond to zero.
218 * The second and nanosecond fields will be set to zero.
237 * day, hour, minute and second, setting the nanosecond to zero.
240 * day-of-month, hour, minute and second.
249 * @param second the second-of-minute to represent, from 0 to 59
254 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int second) {
256 LocalTime time = LocalTime.of(hour, minute, second);
262 * day, hour, minute, second and nanosecond.
265 * day-of-month, hour, minute, second and nanosecond.
273 * @param second the second-of-minute to represent, from 0 to 59
274 * @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) {
281 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond);
288 * day, hour and minute, setting the second and nanosecond to zero.
293 * The second and nanosecond fields will be set to zero.
312 * day, hour, minute and second, setting the nanosecond to zero.
315 * day-of-month, hour, minute and second.
324 * @param second the second-of-minute to represent, from 0 to 59
329 public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int second) {
331 LocalTime time = LocalTime.of(hour, minute, second);
337 * day, hour, minute, second and nanosecond.
340 * day-of-month, hour, minute, second and nanosecond.
348 * @param second the second-of-minute to represent, from 0 to 59
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) {
356 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond);
399 * This allows the {@link ChronoField#INSTANT_SECONDS epoch-second} field
404 * @param nanoOfSecond the nanosecond within the second, from 0 to 999,999,999
408 * or if the nano-of-second is invalid
819 * This returns a {@code LocalTime} with the same hour, minute, second and
848 * Gets the second-of-minute field.
850 * @return the second-of-minute, from 0 to 59
857 * Gets the nano-of-second field.
859 * @return the nano-of-second, from 0 to 999,999,999
1066 * Returns a copy of this {@code LocalDateTime} with the second-of-minute altered.
1070 * @param second the second-of-minute to set in the result, from 0 to 59
1071 * @return a {@code LocalDateTime} based on this date-time with the requested second, not null
1072 * @throws DateTimeException if the second value is invalid
1074 public LocalDateTime withSecond(int second) {
1075 LocalTime newTime = time.withSecond(second);
1080 * Returns a copy of this {@code LocalDateTime} with the nano-of-second altered.
1084 * @param nanoOfSecond the nano-of-second to set in the result, from 0 to 999,999,999
1100 * will set the second-of-minute and nano-of-second field to zero.
1609 * // these two lines are equivalent, but the second approach is recommended
1645 * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}:
1663 * as the second argument.