kvision / pl.treksoft.kvision.moment / Moment

Moment

(js) open class Moment

Constructors

(js)

<init>

Moment(dateArray: Array<dynamic>)
Moment(dateString: String, patter: String)
Moment(dateString: String)
Moment(date: Date)
Moment()

Functions

(js)

add

open fun add(duration: dynamic, key: String): dynamic
(js)

calendar

open fun calendar(): dynamic
open fun calendar(referenceTime: dynamic): dynamic
open fun calendar(referenceTime: dynamic, formats: dynamic): dynamic
(js)

daysInMonth

open fun daysInMonth(): dynamic
(js)

diff

open fun diff(moment: dynamic): dynamic
open fun diff(moment: dynamic, key: dynamic): dynamic
open fun diff(moment: dynamic, key: dynamic, floatingPoint: Boolean): dynamic
(js)

endOf

open fun endOf(key: String): dynamic
(js)

format

open fun format(pattern: String): dynamic
open fun format(): dynamic
(js)

from

open fun from(moment: dynamic): dynamic
open fun from(withoutSuffix: Boolean): dynamic
(js)

fromNow

open fun fromNow(): dynamic
open fun fromNow(withoutSuffix: Boolean): dynamic
(js)

inspect

open fun inspect(): dynamic
(js)

isAfter

open fun isAfter(moment: dynamic): Boolean
open fun isAfter(moment: dynamic, key: String): Boolean
(js)

isBefore

open fun isBefore(moment: dynamic): Boolean
open fun isBefore(moment: dynamic, key: String): Boolean
(js)

isBetween

open fun isBetween(firstMoment: dynamic, secondMoment: dynamic): Boolean
open fun isBetween(firstMoment: dynamic, secondMoment: dynamic, key: String, inclusivity: String): Boolean
open fun isBetween(firstMoment: dynamic, secondMoment: dynamic, key: String): Boolean
(js)

isDST

open fun isDST(): Boolean
(js)

isDSTShifted

open fun isDSTShifted(): Boolean
(js)

isLeapYear

open fun isLeapYear(): Boolean
(js)

isSame

open fun isSame(moment: dynamic): Boolean
open fun isSame(moment: dynamic, key: String): Boolean
(js)

isSameOrAfter

open fun isSameOrAfter(moment: dynamic): Boolean
open fun isSameOrAfter(moment: dynamic, key: String): Boolean
(js)

isSameOrBefore

open fun isSameOrBefore(moment: dynamic): Boolean
open fun isSameOrBefore(moment: dynamic, key: String): Boolean
(js)

lang

open fun lang(locale: String): dynamic
open fun lang(resetLocale: Boolean): dynamic
(js)

local

open fun local(): dynamic
(js)

locale

open fun locale(locale: String): dynamic
open fun locale(resetLocale: Boolean): dynamic
(js)

startOf

open fun startOf(key: String): dynamic
(js)

subtract

open fun subtract(duration: dynamic, key: String): dynamic
(js)

to

open fun to(moment: dynamic): dynamic
open fun to(withoutPrefix: Boolean): dynamic
(js)

toArray

open fun toArray(): dynamic
(js)

toDate

open fun toDate(): dynamic
(js)

toISOString

open fun toISOString(): dynamic
open fun toISOString(keepOffset: Boolean): dynamic
(js)

toJSON

open fun toJSON(): dynamic
(js)

toNow

open fun toNow(): dynamic
open fun toNow(withoutPrefix: Boolean): dynamic
(js)

toObject

open fun toObject(): dynamic
(js)

unix

open fun unix(): dynamic
(js)

utc

open fun utc(): dynamic
(js)

utcOffset

open fun utcOffset(): dynamic
open fun utcOffset(amount: dynamic): dynamic
open fun utcOffset(amount: dynamic, keepExistingTimeOfDay: Boolean): dynamic
(js)

valueOf

open fun valueOf(): dynamic