Variable TimestampStylesConst

TimestampStyles: {
    LongDate: "D";
    LongDateTime: "F";
    LongTime: "T";
    RelativeTime: "R";
    ShortDate: "d";
    ShortDateTime: "f";
    ShortTime: "t";
}

The message formatting timestamp styles supported by Discord.

Type declaration

  • Readonly LongDate: "D"

    Long date format, consisting of day, month, and year.

    Example

    `20 April 2021`
    
  • Readonly LongDateTime: "F"

    Long date-time format, consisting of long date and short time formats.

    Example

    `Tuesday, 20 April 2021 16:20`
    
  • Readonly LongTime: "T"

    Long time format, consisting of hours, minutes, and seconds.

    Example

    `16:20:30`
    
  • Readonly RelativeTime: "R"

    Relative time format, consisting of a relative duration format.

    Example

    `2 months ago`
    
  • Readonly ShortDate: "d"

    Short date format, consisting of day, month, and year.

    Example

    `20/04/2021`
    
  • Readonly ShortDateTime: "f"

    Short date-time format, consisting of short date and short time formats.

    Example

    `20 April 2021 16:20`
    
  • Readonly ShortTime: "t"

    Short time format, consisting of hours and minutes.

    Example

    `16:20`
    

Generated using TypeDoc