Hierarchy

  • Time

Constructors

Properties

#date: Dayjs

Accessors

Methods

  • Parameters

    Returns {
        D: number;
        M: number;
        d: number;
        date: number;
        dates: number;
        day: number;
        days: number;
        h: number;
        hour: number;
        hours: number;
        m: number;
        millisecond: number;
        milliseconds: number;
        minute: number;
        minutes: number;
        month: number;
        months: number;
        ms: number;
        s: number;
        second: number;
        seconds: number;
        y: number;
        year: number;
        years: number;
    }

    • D: number
    • M: number
    • d: number
    • date: number
    • dates: number
    • day: number
    • days: number
    • h: number
    • hour: number
    • hours: number
    • m: number
    • millisecond: number
    • milliseconds: number
    • minute: number
    • minutes: number
    • month: number
    • months: number
    • ms: number
    • s: number
    • second: number
    • seconds: number
    • y: number
    • year: number
    • years: number
  • Parameters

    • Optional referenceTime: TimeDate
    • Optional calendar: Partial<{
          lastDay: string;
          lastWeek: string;
          nextDay: string;
          nextWeek: string;
          sameDay: string;
          sameElse: string;
      }>

    Returns string

  • Parameters

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

    Returns string

  • Parameters

    • localeName: string
    • customConfig: Partial<{
          calendar: Partial<{
              lastDay: string;
              lastWeek: string;
              nextDay: string;
              nextWeek: string;
              sameDay: string;
              sameElse: string;
          }>;
          formats: {
              L: string;
              LL: string;
              LLL: string;
              LLLL: string;
              LT: string;
              LTS: string;
              l: string;
              ll: string;
              lll: string;
              llll: string;
          };
          meridiem: ((hour?: number, minute?: number, isLowercase?: boolean) => string);
          months: string[];
          monthsShort: string[];
          name: string;
          ordinal: ((n: number) => string);
          relativeTime: {
              M: string;
              MM: string;
              d: string;
              dd: string;
              future: string;
              h: string;
              hh: string;
              m: string;
              mm: string;
              past: string;
              s: string;
              y: string;
              yy: string;
          };
          weekStart: number;
          weekdays: string[];
          weekdaysMin: string[];
          weekdaysShort: string[];
          yearStart: number;
      }>

    Returns Partial<{
        calendar: Partial<{
            lastDay: string;
            lastWeek: string;
            nextDay: string;
            nextWeek: string;
            sameDay: string;
            sameElse: string;
        }>;
        formats: {
            L: string;
            LL: string;
            LLL: string;
            LLLL: string;
            LT: string;
            LTS: string;
            l: string;
            ll: string;
            lll: string;
            llll: string;
        };
        meridiem: ((hour?: number, minute?: number, isLowercase?: boolean) => string);
        months: string[];
        monthsShort: string[];
        name: string;
        ordinal: ((n: number) => string);
        relativeTime: {
            M: string;
            MM: string;
            d: string;
            dd: string;
            future: string;
            h: string;
            hh: string;
            m: string;
            mm: string;
            past: string;
            s: string;
            y: string;
            yy: string;
        };
        weekStart: number;
        weekdays: string[];
        weekdaysMin: string[];
        weekdaysShort: string[];
        yearStart: number;
    }>

Generated using TypeDoc