Date
constructor(year: Int, monthIndex: Int, date: Int = definedExternally, hours: Int = definedExternally, minutes: Int = definedExternally, seconds: Int = definedExternally, milliseconds: Int = definedExternally)(source)
Creates a new Date.
Parameters
year
The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
monthIndex
The month as a number between 0 and 11 (January to December).
date
The date as a number between 1 and 31.
hours
Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
minutes
Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
seconds
Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
milliseconds
A number from 0 to 999 that specifies the milliseconds.