Discord.https - v3.0.16
    Preparing search index...

    Function time

    • Formats a date into a short date-time string.

      Parameters

      • Optionaldate: Date

        The date to format. Defaults to the current time

      Returns `<t:${bigint}>`

    • Formats a date given a format style.

      Type Parameters

      Parameters

      • date: Date

        The date to format

      • style: Style

        The style to use

      Returns `<t:${bigint}:${Style}>`

    • Formats the given timestamp into a short date-time string.

      Type Parameters

      • Seconds extends number

        This is inferred by the supplied timestamp

      Parameters

      • seconds: Seconds

        A Unix timestamp in seconds

      Returns `<t:${Seconds}>`

    • Formats the given timestamp into a short date-time string.

      Type Parameters

      Parameters

      • seconds: Seconds

        A Unix timestamp in seconds

      • style: Style

        The style to use

      Returns `<t:${Seconds}:${Style}>`