Generation of properly-formatted dynamic timestamps for Discord messages
Project description
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>'
Installation
discord-timestamps is available on PyPI:
$ pip install discord-timestamps
discord-timestamps officially supports Python 3.6+.
API Reference
See Read the Docs for Averager's documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for discord_timestamps-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d8c7190e2a4c4ebcbf4b10e059d16e5f10a6b633e4e64e60c9ca745d24d7892 |
|
MD5 | eb347a5bb952d7ed6508bd22f82abf11 |
|
BLAKE2b-256 | e68de87e696dff52782c31c414aa6c29df6770e112cd450231f8c25d081a3cd7 |