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 the wiki for discord-timestamps'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 Distributions
Close
Hashes for discord_timestamps-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55c649045c865ee5302725cca291659a94b4f8420129d076d570faa68e09817f |
|
MD5 | 2f68b667498e5fe6c31de010fcfa120f |
|
BLAKE2b-256 | 200cc75a9a887d8ab27f36e19554469257cfc32f816acaf3b474dc348be9aa91 |
Close
Hashes for discord_timestamps-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74fbe91b68e01ef276ffa063577ac1135dee785d673dd019bf30c9b59db5e0cf |
|
MD5 | a8dd0a64cc60ee0d3ae9c746fe44a56a |
|
BLAKE2b-256 | 3c0bb32e777fbca71eb7af4e65e8a0371b9cbf1cf7168258715d8bfa344a39dc |