new
fun new(year: Int, month: Int, day: Int, hourIn24: Int = 0, minute: Int = 0, second: Int = 0, nano: Int = 0): LocalDateTime
Return
LocalDateTime.
Parameters
year
Year, ie, 2020.
month
Month with range 1-12, i.e. 1 for January.
day
Day of the month with range 1-31.
hour In24
Hour of the day with range 0-23.
minute
Minute of the hour with range 0-59.
second
Second of the minute with range 0-59.
nano
Nano-of-second to represent, from 0 to 999,999,999.
fun new(year: Int, month: Int, day: Int, hour: Int = 0, minute: Int = 0, second: Int = 0, nano: Int = 0, isAm: Boolean): LocalDateTime
Return
LocalDateTime.
Parameters
year
Year, ie, 2020.
month
Month with range 1-12, i.e. 1 for January.
day
Day of the month with range 1-31.
hour
Hour of the day with range 1-12.
minute
Minute of the hour with range 0-59.
second
Second of the minute with range 0-59.
nano
Nano-of-second to represent, from 0 to 999,999,999.
is Am
If true, sets assumes hour is in the AM, else PM.
Return
LocalDateTime.
Parameters
epoch Milliseconds
Epoch time, aka Unix time, are seconds elapsed since January 1st 1970 at 00:00:00 UTC.