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 Distribution
Close
Hashes for discord_timestamps-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104327cb142f4d5c4064b46b9d09862d08ffb62591d20e3cb82324416c03ba74 |
|
MD5 | 5eb77e075f185a8c8d7085e149e08605 |
|
BLAKE2b-256 | 12eb35b4b3430b897fdd33e5d879c493c3dd7ad0839e9a7ffe802c5a41451d92 |