Date

external class Date(source)

Exposes the Date API to Kotlin.

Since Kotlin

1.1

Constructors

Link copied to clipboard
constructor(milliseconds: Number)
constructor(dateString: String)
constructor(year: Int, month: Int)
constructor(year: Int, month: Int, day: Int)
constructor(year: Int, month: Int, day: Int, hour: Int)
constructor(year: Int, month: Int, day: Int, hour: Int, minute: Int)
constructor(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int)
constructor(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, millisecond: Number)
constructor()

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1
Link copied to clipboard
interface LocaleOptions
Since Kotlin 1.1

Functions

Link copied to clipboard
fun getDate(): Int
Since Kotlin 1.1
Link copied to clipboard
fun getDay(): Int
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
fun getHours(): Int
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
fun getMonth(): Int
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
fun getUTCDay(): Int
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
fun toJSON(): Json
Since Kotlin 1.1
Link copied to clipboard
fun toLocaleDateString(locales: Array<String> = definedExternally, options: Date.LocaleOptions = definedExternally): String
fun toLocaleDateString(locales: String, options: Date.LocaleOptions = definedExternally): String
Since Kotlin 1.1
Link copied to clipboard
fun toLocaleString(locales: Array<String> = definedExternally, options: Date.LocaleOptions = definedExternally): String
fun toLocaleString(locales: String, options: Date.LocaleOptions = definedExternally): String
Since Kotlin 1.1
Link copied to clipboard
fun toLocaleTimeString(locales: Array<String> = definedExternally, options: Date.LocaleOptions = definedExternally): String
fun toLocaleTimeString(locales: String, options: Date.LocaleOptions = definedExternally): String
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1