IUtils

external interface IUtils<TDate : Any>(source)

Properties

Link copied to clipboard
abstract external val dayjs: Any?
Link copied to clipboard
abstract external val formats: DateIOFormats<*>
Link copied to clipboard
abstract external val lib: String

Name of the library that is used right now

Link copied to clipboard
abstract external val locale: Any?
Link copied to clipboard
abstract external val moment: Any?

Functions

Link copied to clipboard
abstract external fun addDays(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun addHours(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun addMinutes(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun addMonths(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun addSeconds(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun addWeeks(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun addYears(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun date(value: Any?): TDate?
Link copied to clipboard
abstract external fun endOfDay(value: TDate): TDate
Link copied to clipboard
abstract external fun endOfMonth(value: TDate): TDate
Link copied to clipboard
abstract external fun endOfWeek(value: TDate): TDate
Link copied to clipboard
abstract external fun endOfYear(value: TDate): TDate
Link copied to clipboard
abstract external fun format(value: TDate, formatKey: String): String
Link copied to clipboard
abstract external fun formatByString(value: TDate, formatString: String): String
Link copied to clipboard
abstract external fun formatNumber(numberToFormat: String): String
Link copied to clipboard
abstract external fun getCurrentLocaleCode(): String
Link copied to clipboard
abstract external fun getDate(value: TDate): Int
Link copied to clipboard
abstract external fun getDaysInMonth(value: TDate): Int
Link copied to clipboard
abstract external fun getDiff(value: TDate, comparing: TDate, unit: String?): Int
Link copied to clipboard
abstract external fun getFormatHelperText(format: String): String

Returns user readable format (taking into account localized format tokens), useful to render helper text for input (e.g. placeholder). If helper can not be created and for luxon always returns empty string.

Link copied to clipboard
abstract external fun getHours(value: TDate): Int
Link copied to clipboard
abstract external fun getMeridiemText(ampm: String): String

Allow to customize displaying "am/pm" strings

Link copied to clipboard
abstract external fun getMinutes(value: TDate): Int
Link copied to clipboard
abstract external fun getMonth(value: TDate): Int
Link copied to clipboard
abstract external fun getMonthArray(value: TDate): ReadonlyArray<TDate>
Link copied to clipboard
abstract external fun getNextMonth(value: TDate): TDate
Link copied to clipboard
abstract external fun getPreviousMonth(value: TDate): TDate
Link copied to clipboard
abstract external fun getSeconds(value: TDate): Int
Link copied to clipboard
abstract external fun getWeekArray(date: TDate): ReadonlyArray<ReadonlyArray<TDate>>
Link copied to clipboard
abstract external fun getWeekdays(): ReadonlyArray<String>
Link copied to clipboard
abstract external fun getYear(value: TDate): Int
Link copied to clipboard
abstract external fun getYearRange(start: TDate, end: TDate): ReadonlyArray<TDate>
Link copied to clipboard
abstract external fun is12HourCycleInCurrentLocale(): Boolean
Link copied to clipboard
abstract external fun isAfter(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isAfterDay(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isAfterMonth(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isAfterYear(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isBefore(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isBeforeDay(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isBeforeMonth(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isBeforeYear(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isEqual(value: Any, comparing: Any): Boolean
Link copied to clipboard
abstract external fun isNull(value: TDate?): Boolean
Link copied to clipboard
abstract external fun isSameDay(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isSameHour(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isSameMonth(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isSameYear(value: TDate, comparing: TDate): Boolean
Link copied to clipboard
abstract external fun isValid(value: Any): Boolean
Link copied to clipboard
abstract external fun isWithinRange(value: TDate, range: Tuple2<TDate, TDate>): Boolean
Link copied to clipboard
abstract external fun mergeDateAndTime(date: TDate, time: TDate): TDate
Link copied to clipboard
abstract external fun parse(value: String, format: String): TDate?
Link copied to clipboard
abstract external fun parseISO(isString: String): TDate
Link copied to clipboard
abstract external fun setDate(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun setHours(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun setMinutes(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun setMonth(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun setSeconds(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun setYear(value: TDate, count: Int): TDate
Link copied to clipboard
abstract external fun startOfDay(value: TDate): TDate
Link copied to clipboard
abstract external fun startOfMonth(value: TDate): TDate
Link copied to clipboard
abstract external fun startOfWeek(value: TDate): TDate
Link copied to clipboard
abstract external fun startOfYear(value: TDate): TDate
Link copied to clipboard
abstract external fun toISO(value: TDate): String
Link copied to clipboard
abstract external fun toJsDate(value: TDate): Date