TypeError if passed arguments are of wrong type
Readonly locala LocalDate object
Readonly locala LocalTime object
Static fromStatic constructor for convenient construction.
TypeError if passed arguments are of wrong type
RangeError if value of any of the arguments are invalid
Must be between -999999999-999999999
Must be between 1-12
Must be between 1-31 depending on year and month
The hour-of-day to represent, from 0 to 23
The minute-of-hour to represent, from 0 to 59
The second-of-minute to represent, from 0 to 59
The nano-of-second to represent, from 0 to 999,999,999
Static fromConstructs a new instance from Date.
TypeError if the passed param is not a Date
RangeError if an invalid Date is passed
must be a valid Date. date.getTime() should be not NaN
Static fromConstructs LocalDateTime from ISO 8601 string.
RangeError if ISO string is invalid or any of the values in ISO string is invalid
TypeError if the value is not a string
Must not include timezone information. The string format is yyyy-mm-ss(T|t)HH:mm:ss.SSS. The last SSS part represents nanoseconds and can be omitted.
Generated using TypeDoc
Local datetime object