Flarum (v2.0.0-beta.4)
    Preparing search index...
    Index

    Constructors

    Properties

    dateTimeFormats: ItemList<DateTimeFormatCallback> = ...

    A item list of date time format callbacks.

    formatter: typeof formatMessage = formatMessage

    The underlying ICU MessageFormatter util.

    Accessors

    Methods

    • Formats the time.

      The format of the time will be chosen by the following order:

      • Custom format defined in the item list.
      • The format defined in current locale.
      • DayJS default format.

      Parameters

      • time: Dayjs
      • id: string

      Returns string