def format_dt(dt: datetime.datetime, /, style: Optional[TimestampStyle]=None) -> str:
    "A helper function to format a :class:`datetime.datetime` for presentation within Discord.\n\n    This allows for a locale-independent way of presenting data using Discord specific Markdown.\n\n    +-------------+----------------------------+-----------------+\n    |    Style    |       Example Output       |   Description   |\n    +=============+============================+=================+\n    | t           | 22:57                      | Short Time      |\n    +-------------+----------------------------+-----------------+\n    | T           | 22:57:58                   | Long Time       |\n    +-------------+----------------------------+-----------------+\n    | d           | 17/05/2016                 | Short Date      |\n    +-------------+----------------------------+-----------------+\n    | D           | 17 May 2016                | Long Date       |\n    +-------------+----------------------------+-----------------+\n    | f (default) | 17 May 2016 22:57          | Short Date Time |\n    +-------------+----------------------------+-----------------+\n    | F           | Tuesday, 17 May 2016 22:57 | Long Date Time  |\n    +-------------+----------------------------+-----------------+\n    | R           | 5 years ago                | Relative Time   |\n    +-------------+----------------------------+-----------------+\n\n    Note that the exact output depends on the user's locale setting in the client. The example output\n    presented is using the ``en-GB`` locale.\n\n    .. versionadded:: 2.0\n\n    Parameters\n    -----------\n    dt: :class:`datetime.datetime`\n        The datetime to format.\n    style: :class:`str`\n        The style to format the datetime with.\n\n    Returns\n    --------\n    :class:`str`\n        The formatted string.\n    "
    if (style is None):
        return f'<t:{int(dt.timestamp())}>'
    return f'<t:{int(dt.timestamp())}:{style}>'
A helper function to format a :class:`datetime.datetime` for presentation within Discord.

This allows for a locale-independent way of presenting data using Discord specific Markdown.

+-------------+----------------------------+-----------------+
|    Style    |       Example Output       |   Description   |
+=============+============================+=================+
| t           | 22:57                      | Short Time      |
+-------------+----------------------------+-----------------+
| T           | 22:57:58                   | Long Time       |
+-------------+----------------------------+-----------------+
| d           | 17/05/2016                 | Short Date      |
+-------------+----------------------------+-----------------+
| D           | 17 May 2016                | Long Date       |
+-------------+----------------------------+-----------------+
| f (default) | 17 May 2016 22:57          | Short Date Time |
+-------------+----------------------------+-----------------+
| F           | Tuesday, 17 May 2016 22:57 | Long Date Time  |
+-------------+----------------------------+-----------------+
| R           | 5 years ago                | Relative Time   |
+-------------+----------------------------+-----------------+

Note that the exact output depends on the user's locale setting in the client. The example output
presented is using the ``en-GB`` locale.

.. versionadded:: 2.0

Parameters
-----------
dt: :class:`datetime.datetime`
    The datetime to format.
style: :class:`str`
    The style to format the datetime with.

Returns
--------
:class:`str`
    The formatted string.
def format_dt(dt: datetime.datetime, /, style: Optional[TimestampStyle]=None) -> str:
    "A helper function to format a :class:`datetime.datetime` for presentation within Discord.\n\n    This allows for a locale-independent way of presenting data using Discord specific Markdown.\n\n    +-------------+----------------------------+-----------------+\n    |    Style    |       Example Output       |   Description   |\n    +=============+============================+=================+\n    | t           | 22:57                      | Short Time      |\n    +-------------+----------------------------+-----------------+\n    | T           | 22:57:58                   | Long Time       |\n    +-------------+----------------------------+-----------------+\n    | d           | 17/05/2016                 | Short Date      |\n    +-------------+----------------------------+-----------------+\n    | D           | 17 May 2016                | Long Date       |\n    +-------------+----------------------------+-----------------+\n    | f (default) | 17 May 2016 22:57          | Short Date Time |\n    +-------------+----------------------------+-----------------+\n    | F           | Tuesday, 17 May 2016 22:57 | Long Date Time  |\n    +-------------+----------------------------+-----------------+\n    | R           | 5 years ago                | Relative Time   |\n    +-------------+----------------------------+-----------------+\n\n    Note that the exact output depends on the user's locale setting in the client. The example output\n    presented is using the ``en-GB`` locale.\n\n    .. versionadded:: 2.0\n\n    Parameters\n    -----------\n    dt: :class:`datetime.datetime`\n        The datetime to format.\n    style: :class:`str`\n        The style to format the datetime with.\n\n    Returns\n    --------\n    :class:`str`\n        The formatted string.\n    "
    if (style is None):
        return f'<t:{int(dt.timestamp())}>'
    return f'<t:{int(dt.timestamp())}:{style}>'