Date
Types
LocaleOptions
interface LocaleOptionsConstructors
<init>
Date(milliseconds: Number)Date(dateString: String)Date(year: Int, month: Int)Date(year: Int, month: Int, day: Int)Date(year: Int, month: Int, day: Int, hour: Int)Date(year: Int, month: Int, day: Int, hour: Int, minute: Int)Date(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int,
second: Int)Date(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int,
second: Int,
millisecond: Number)Exposes the Date API to Kotlin.
Date()Functions
getDate
fun getDate(): IntgetDay
fun getDay(): IntgetFullYear
fun getFullYear(): IntgetHours
fun getHours(): IntgetMilliseconds
fun getMilliseconds(): IntgetMinutes
fun getMinutes(): IntgetMonth
fun getMonth(): IntgetSeconds
fun getSeconds(): IntgetTime
fun getTime(): DoublegetTimezoneOffset
fun getTimezoneOffset(): IntgetUTCDate
fun getUTCDate(): IntgetUTCDay
fun getUTCDay(): IntgetUTCFullYear
fun getUTCFullYear(): IntgetUTCHours
fun getUTCHours(): IntgetUTCMilliseconds
fun getUTCMilliseconds(): IntgetUTCMinutes
fun getUTCMinutes(): IntgetUTCMonth
fun getUTCMonth(): IntgetUTCSeconds
fun getUTCSeconds(): InttoDateString
fun toDateString(): StringtoISOString
fun toISOString(): StringtoLocaleDateString
fun toLocaleDateString(
locales: Array<String> = definedExternally,
options: LocaleOptions = definedExternally
): Stringfun toLocaleDateString(
locales: String,
options: LocaleOptions = definedExternally
): StringtoLocaleString
fun toLocaleString(
locales: Array<String> = definedExternally,
options: LocaleOptions = definedExternally
): Stringfun toLocaleString(
locales: String,
options: LocaleOptions = definedExternally
): StringtoLocaleTimeString
fun toLocaleTimeString(
locales: Array<String> = definedExternally,
options: LocaleOptions = definedExternally
): Stringfun toLocaleTimeString(
locales: String,
options: LocaleOptions = definedExternally
): StringtoTimeString
fun toTimeString(): StringtoUTCString
fun toUTCString(): StringCompanion Object Functions
now
fun now(): Doubleparse
fun parse(dateString: String): DoubleUTC
fun UTC(year: Int, month: Int): Doublefun UTC(year: Int, month: Int, day: Int): Doublefun UTC(year: Int, month: Int, day: Int, hour: Int): Doublefun UTC(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int
): Doublefun UTC(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int,
second: Int
): Doublefun UTC(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int,
second: Int,
millisecond: Number
): Double