Date
Types
LocaleOptions
interface LocaleOptions
Constructors
<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(): Int
getDay
fun getDay(): Int
getFullYear
fun getFullYear(): Int
getHours
fun getHours(): Int
getMilliseconds
fun getMilliseconds(): Int
getMinutes
fun getMinutes(): Int
getMonth
fun getMonth(): Int
getSeconds
fun getSeconds(): Int
getTime
fun getTime(): Double
getTimezoneOffset
fun getTimezoneOffset(): Int
getUTCDate
fun getUTCDate(): Int
getUTCDay
fun getUTCDay(): Int
getUTCFullYear
fun getUTCFullYear(): Int
getUTCHours
fun getUTCHours(): Int
getUTCMilliseconds
fun getUTCMilliseconds(): Int
getUTCMinutes
fun getUTCMinutes(): Int
getUTCMonth
fun getUTCMonth(): Int
getUTCSeconds
fun getUTCSeconds(): Int
toDateString
fun toDateString(): String
toISOString
fun toISOString(): String
toLocaleDateString
fun toLocaleDateString(
locales: Array<String> = definedExternally,
options: LocaleOptions = definedExternally
): String
fun toLocaleDateString(
locales: String,
options: LocaleOptions = definedExternally
): String
toLocaleString
fun toLocaleString(
locales: Array<String> = definedExternally,
options: LocaleOptions = definedExternally
): String
fun toLocaleString(
locales: String,
options: LocaleOptions = definedExternally
): String
toLocaleTimeString
fun toLocaleTimeString(
locales: Array<String> = definedExternally,
options: LocaleOptions = definedExternally
): String
fun toLocaleTimeString(
locales: String,
options: LocaleOptions = definedExternally
): String
toTimeString
fun toTimeString(): String
toUTCString
fun toUTCString(): String
Companion Object Functions
now
fun now(): Double
parse
fun parse(dateString: String): Double
UTC
fun UTC(year: Int, month: Int): Double
fun UTC(year: Int, month: Int, day: Int): Double
fun UTC(year: Int, month: Int, day: Int, hour: Int): Double
fun UTC(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int
): Double
fun UTC(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int,
second: Int
): Double
fun UTC(
year: Int,
month: Int,
day: Int,
hour: Int,
minute: Int,
second: Int,
millisecond: Number
): Double