IUtils

external interface IUtils<TDate : Any>(source)

Properties

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

Name of the library that is used right now

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

Functions

Link copied to clipboard
abstract fun addDays(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun addHours(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun addMinutes(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun addMonths(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun addSeconds(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun addWeeks(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun addYears(value: TDate, count: Int): TDate
Link copied to clipboard
abstract fun date(value: Any?): TDate?
Link copied to clipboard
abstract fun endOfDay(value: TDate): TDate
Link copied to clipboard
abstract fun endOfMonth(value: TDate): TDate
Link copied to clipboard
abstract fun endOfWeek(value: TDate): TDate
Link copied to clipboard
abstract fun endOfYear(value: TDate): TDate
Link copied to clipboard
abstract fun format(value: TDate, formatKey: String): String
Link copied to clipboard
abstract fun formatByString(value: TDate, formatString: String): String
Link copied to clipboard
abstract fun formatNumber(numberToFormat: String): String
Link copied to clipboard
Link copied to clipboard
abstract fun getDate(value: TDate): Int
Link copied to clipboard
abstract fun getDaysInMonth(value: TDate): Int
Link copied to clipboard
abstract fun getDiff(value: TDate, comparing: TDate, unit: String?): Int
Link copied to clipboard
abstract 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 fun getHours(value: TDate): Int
Link copied to clipboard
abstract fun getMeridiemText(ampm: String): String

Allow to customize displaying "am/pm" strings

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