createDate

fun createDate(year: Int, month: Int, day: Int, hours: Int = 0, minutes: Int = 0, seconds: Int = 0): Date

Helper method used to create a new Date object. The resulting date is in UTC.

Parameters

year

integer representing the year

month

integer representing the month. The month is 0-based (0 for January, 1 for February, etc)

day

integer representing the day of the month

hours

integer representing the hour of the day. The hour is based on a 24 hour clock (0-23)

minutes

integer representing the minutes of the hour (0-59)

seconds

integer representing the seconds of the minute (0-59)


Helper method used to convert seconds from epoch to a new Date object. The resulting date is in UTC.