external class Date
Platform and version requirements: JS
Exposes the Date API to Kotlin.
interface LocaleOptions |
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) Date() Exposes the Date API to Kotlin. |
fun getDate(): Int | |
fun getDay(): Int | |
fun getFullYear(): Int | |
fun getHours(): Int | |
fun getMilliseconds(): Int | |
fun getMinutes(): Int | |
fun getMonth(): Int | |
fun getSeconds(): Int | |
fun getTime(): Double | |
fun getTimezoneOffset(): Int | |
fun getUTCDate(): Int | |
fun getUTCDay(): Int | |
fun getUTCFullYear(): Int | |
fun getUTCHours(): Int | |
fun getUTCMilliseconds(): Int | |
fun getUTCMinutes(): Int | |
fun getUTCMonth(): Int | |
fun getUTCSeconds(): Int | |
fun toDateString(): String | |
fun toISOString(): String | |
fun toJSON(): Json | |
fun toLocaleDateString( locales: Array<String> = definedExternally, options: LocaleOptions = definedExternally ): String fun toLocaleDateString( locales: String, options: LocaleOptions = definedExternally ): String | |
fun toLocaleString( locales: Array<String> = definedExternally, options: LocaleOptions = definedExternally ): String fun toLocaleString( locales: String, options: LocaleOptions = definedExternally ): String | |
fun toLocaleTimeString( locales: Array<String> = definedExternally, options: LocaleOptions = definedExternally ): String fun toLocaleTimeString( locales: String, options: LocaleOptions = definedExternally ): String | |
fun toTimeString(): String | |
fun toUTCString(): String |
open operator fun equals(other: Any?): Boolean Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements: | |
open fun hashCode(): Int Returns a hash code value for the object. The general contract of hashCode is: | |
open fun toString(): String Returns a string representation of the object. |
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 | |
fun now(): Double | |
fun parse(dateString: String): Double |
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-date/index.html