GitHunt
BS

bsoyka/discord-timestamps

Properly-formatted dynamic timestamps for Discord messages

discord-timestamps

discord-timestamps generates properly-formatted dynamic timestamps for
Discord messages, with support for Arrow objects.

>>> format_timestamp(datetime(2021, 11, 20, 12, 0, 0))
'<t:1637409600>'

>>> format_timestamp(datetime(...), TimestampType.RELATIVE)
'<t:1637409600:R>'

Downloads
Supported Versions
Testing
License
Version

Installation

discord-timestamps is available on PyPI:

$ pip install discord-timestamps

discord-timestamps officially supports Python 3.6+.

API Reference

See the wiki for
discord-timestamps's documentation.

Languages

Python100.0%

Contributors

MIT License
Created November 20, 2021
Updated February 24, 2025