toCalendar

fun Long.toCalendar(timeZone: TimeZone = TimeZone.getDefault(), locale: Locale = Locale.getDefault()): Calendar

Creates a new Calendar using this as the time in milliseconds.


fun Date.toCalendar(timeZone: TimeZone = TimeZone.getDefault(), locale: Locale = Locale.getDefault()): Calendar

Creates a new Calendar using this as the date.