Date

external class Date

Exposes the Date API to Kotlin.

Constructors

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

Types

Companion
Link copied to clipboard
JS
object Companion
LocaleOptions
Link copied to clipboard
JS
interface LocaleOptions

Functions

getDate
Link copied to clipboard
JS
fun getDate(): Int
getDay
Link copied to clipboard
JS
fun getDay(): Int
getFullYear
Link copied to clipboard
JS
fun getFullYear(): Int
getHours
Link copied to clipboard
JS
fun getHours(): Int
getMilliseconds
Link copied to clipboard
JS
fun getMilliseconds(): Int
getMinutes
Link copied to clipboard
JS
fun getMinutes(): Int
getMonth
Link copied to clipboard
JS
fun getMonth(): Int
getSeconds
Link copied to clipboard
JS
fun getSeconds(): Int
getTime
Link copied to clipboard
JS
fun getTime(): Double
getTimezoneOffset
Link copied to clipboard
JS
fun getTimezoneOffset(): Int
getUTCDate
Link copied to clipboard
JS
fun getUTCDate(): Int
getUTCDay
Link copied to clipboard
JS
fun getUTCDay(): Int
getUTCFullYear
Link copied to clipboard
JS
fun getUTCFullYear(): Int
getUTCHours
Link copied to clipboard
JS
fun getUTCHours(): Int
getUTCMilliseconds
Link copied to clipboard
JS
fun getUTCMilliseconds(): Int
getUTCMinutes
Link copied to clipboard
JS
fun getUTCMinutes(): Int
getUTCMonth
Link copied to clipboard
JS
fun getUTCMonth(): Int
getUTCSeconds
Link copied to clipboard
JS
fun getUTCSeconds(): Int
toDateString
Link copied to clipboard
JS
fun toDateString(): String
toISOString
Link copied to clipboard
JS
fun toISOString(): String
toJSON
Link copied to clipboard
JS
fun toJSON(): Json
toLocaleDateString
Link copied to clipboard
JS
fun toLocaleDateString(locales: Array<String> = definedExternally, options: Date.LocaleOptions = definedExternally): String
fun toLocaleDateString(locales: String, options: Date.LocaleOptions = definedExternally): String
toLocaleString
Link copied to clipboard
JS
fun toLocaleString(locales: Array<String> = definedExternally, options: Date.LocaleOptions = definedExternally): String
fun toLocaleString(locales: String, options: Date.LocaleOptions = definedExternally): String
toLocaleTimeString
Link copied to clipboard
JS
fun toLocaleTimeString(locales: Array<String> = definedExternally, options: Date.LocaleOptions = definedExternally): String
fun toLocaleTimeString(locales: String, options: Date.LocaleOptions = definedExternally): String
toTimeString
Link copied to clipboard
JS
fun toTimeString(): String
toUTCString
Link copied to clipboard
JS
fun toUTCString(): String