Obtains an instance of LocalDateTime
from year, month,
day, hour and minute, setting the second and nanosecond to zero.
This returns a LocalDateTime
with the specified year, month,
day-of-month, hour and minute.
The day must be valid for the year and month, otherwise an exception will be thrown.
The second and nanosecond fields will be set to zero.
year | the year to represent, from MIN_YEAR to MAX_YEAR | |
month | the month-of-year to represent, from 1 (January) to 12 (December) | |
dayOfMonth | the day-of-month to represent, from 1 to 31 | |
hour | the hour-of-day to represent, from 0 to 23 | |
minute | the minute-of-hour to represent, from 0 to 59 |
DateTimeException | if the value of any field is out of range, or if the day-of-month is invalid for the month-year |
Diagram: LocalDateTime