Lines Matching refs:from

47  *    may be used to endorse or promote products derived from this software
154 * The number of days from year zero to year 1970.
155 * There are five 400 year cycles from year zero to 2000.
156 * There are 7 leap years from 1970 to 2000.
175 * Obtains the current date from the system clock in the default time-zone.
190 * Obtains the current date from the system clock in the specified time-zone.
206 * Obtains the current date from the specified clock.
227 * Obtains an instance of {@code LocalDate} from a year, month and day.
232 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
234 * @param dayOfMonth the day-of-month to represent, from 1 to 31
247 * Obtains an instance of {@code LocalDate} from a year, month and day.
252 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
253 * @param month the month-of-year to represent, from 1 (January) to 12 (December)
254 * @param dayOfMonth the day-of-month to represent, from 1 to 31
268 * Obtains an instance of {@code LocalDate} from a year and day-of-year.
273 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
274 * @param dayOfYear the day-of-year to represent, from 1 to 366
297 * Obtains an instance of {@code LocalDate} from the epoch day count.
341 * Obtains an instance of {@code LocalDate} from a temporal object.
351 * allowing it to be used as a query via method reference, {@code LocalDate::from}.
357 public static LocalDate from(TemporalAccessor temporal) {
361 throw new DateTimeException("Unable to obtain LocalDate from TemporalAccessor: " +
369 * Obtains an instance of {@code LocalDate} from a text string such as {@code 2007-12-03}.
383 * Obtains an instance of {@code LocalDate} from a text string using a specific formatter.
394 return formatter.parse(text, LocalDate::from);
399 * Creates a local date from the year, month and day fields.
401 * @param year the year to represent, validated from MIN_YEAR to MAX_YEAR
402 * @param month the month-of-year to represent, from 1 to 12, validated
403 * @param dayOfMonth the day-of-month to represent, validated from 1 to 31
435 * @param year the year to represent, validated from MIN_YEAR to MAX_YEAR
436 * @param month the month-of-year to represent, validated from 1 to 12
437 * @param day the day-of-month to represent, validated from 1 to 31
458 * @param year the year to represent, from MIN_YEAR to MAX_YEAR
460 * @param dayOfMonth the day-of-month to represent, valid for year-month, from 1 to 31
512 * This checks if the specified unit can be added to, or subtracted from, this date.
587 * Gets the value of the specified field from this date as an {@code int}.
622 * Gets the value of the specified field from this date as a {@code long}.
701 * It defines two eras, 'CE' from year one onwards and 'BCE' from year zero backwards.
728 * @return the year, from MIN_YEAR to MAX_YEAR
735 * Gets the month-of-year field from 1 to 12.
737 * This method returns the month as an {@code int} from 1 to 12.
741 * @return the month-of-year, from 1 to 12
768 * @return the day-of-month, from 1 to 31
779 * @return the day-of-year, from 1 to 365, or 366 in a leap year
793 * Additional information can be obtained from the {@code DayOfWeek}.
919 * such as changing the month from 31st January to February would make the day-of-month invalid.
1046 * @param year the year to set in the result, from MIN_YEAR to MAX_YEAR
1065 * @param month the month-of-year to set in the result, from 1 (January) to 12 (December)
1084 * @param dayOfMonth the day-of-month to set in the result, from 1 to 28-31
1103 * @param dayOfYear the day-of-year to set in the result, from 1 to 365-366
1391 * @param amountToSubtract the amount of the unit to subtract from the result, may be negative
1407 * This method subtracts the specified amount from the years field in three steps:
1409 * <li>Subtract the input years from the year field</li>
1431 * This method subtracts the specified amount from the months field in three steps:
1433 * <li>Subtract the input months from the month-of-year field</li>
1455 * This method subtracts the specified amount in weeks from the days field decrementing
1474 * This method subtracts the specified amount from the days field decrementing the
1555 * {@code LocalDate} using {@link #from(TemporalAccessor)}.
1596 LocalDate end = LocalDate.from(endExclusive);
1640 * For example, from {@code 2010-01-15} to {@code 2011-03-18} is "1 year, 2 months and 3 days".
1657 LocalDate end = LocalDate.from(endDateExclusive);
1692 * This returns a {@code LocalDateTime} formed from this date at the specified time.
1696 * @return the local date-time formed from this date and the specified time, not null
1706 * This returns a {@code LocalDateTime} formed from this date at the
1712 * @param hour the hour-of-day to use, from 0 to 23
1713 * @param minute the minute-of-hour to use, from 0 to 59
1714 * @return the local date-time formed from this date and the specified time, not null
1724 * This returns a {@code LocalDateTime} formed from this date at the
1730 * @param hour the hour-of-day to use, from 0 to 23
1731 * @param minute the minute-of-hour to use, from 0 to 59
1732 * @param second the second-of-minute to represent, from 0 to 59
1733 * @return the local date-time formed from this date and the specified time, not null
1743 * This returns a {@code LocalDateTime} formed from this date at the
1748 * @param hour the hour-of-day to use, from 0 to 23
1749 * @param minute the minute-of-hour to use, from 0 to 59
1750 * @param second the second-of-minute to represent, from 0 to 59
1751 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
1752 * @return the local date-time formed from this date and the specified time, not null
1762 * This returns an {@code OffsetDateTime} formed from this date at the specified time.
1766 * @return the offset date-time formed from this date and the specified time, not null
1776 * This returns a {@code LocalDateTime} formed from this date at the time of
1786 * Returns a zoned date-time from this date at the earliest valid time according
1803 * @return the zoned date-time formed from this date and the earliest valid time for the zone, not null
1807 // need to handle case where there is a gap from 11:30 to 00:30
1847 * The comparison is primarily based on the date, from earliest to latest.
1892 * This is different from the comparison in {@link #compareTo(ChronoLocalDate)},
1921 * This is different from the comparison in {@link #compareTo(ChronoLocalDate)},
1950 * This is different from the comparison in {@link #compareTo(ChronoLocalDate)}