Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace dayjs

Index

Type aliases

ConfigType

ConfigType: ConfigTypeMap[keyof ConfigTypeMap]

ManipulateType

ManipulateType: Omit<OpUnitType, "date" | "dates">

OpUnitType

OpUnitType: UnitType | "week" | "weeks" | "w"

OptionType

OptionType: FormatObject | string | string[]

PluginFunc

PluginFunc<T>: (option: T, c: typeof Dayjs, d: typeof dayjs) => void

Type parameters

  • T = unknown

Type declaration

    • (option: T, c: typeof Dayjs, d: typeof dayjs): void
    • Parameters

      Returns void

QUnitType

QUnitType: UnitType | "quarter" | "quarters" | "Q"

UnitType

UnitTypeLong

UnitTypeLong: "millisecond" | "second" | "minute" | "hour" | "day" | "month" | "year" | "date"

UnitTypeLongPlural

UnitTypeLongPlural: "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | "dates"

UnitTypeShort

UnitTypeShort: "d" | "M" | "y" | "h" | "m" | "s" | "ms"

Variables

Ls

Ls: {}

Type declaration

  • [key: string]: ILocale

tz

Functions

extend

  • Type parameters

    • T = unknown

    Parameters

    Returns Dayjs

isDayjs

  • isDayjs(d: any): d is Dayjs
  • Parameters

    • d: any

    Returns d is Dayjs

locale

  • locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
  • Parameters

    • Optional preset: string | ILocale
    • Optional object: Partial<ILocale>
    • Optional isLocal: boolean

    Returns string

unix

  • Parameters

    • t: number

    Returns Dayjs

utc

  • utc(config?: null | string | number | Date | Dayjs, format?: string, strict?: boolean): Dayjs
  • Parameters

    • Optional config: null | string | number | Date | Dayjs
    • Optional format: string
    • Optional strict: boolean

    Returns Dayjs

Generated using TypeDoc