Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-timestamps-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

discord_timestamps-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

discord_timestamps-1.0.1-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file discord-timestamps-1.0.1.tar.gz.

File metadata

  • Download URL: discord-timestamps-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for discord-timestamps-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a15af4a663ac4f1499c919e0ae36b10f3df6f52f5e51199be71a5fbd2cd6fcee
MD5 a34e6506613df3be759b31d05dfd3d2f
BLAKE2b-256 15b475e3133de7415f2fe99ad34c5948202d65a9e649ed8b9b7f4881cd006e15

See more details on using hashes here.

File details

Details for the file discord_timestamps-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for discord_timestamps-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55c649045c865ee5302725cca291659a94b4f8420129d076d570faa68e09817f
MD5 2f68b667498e5fe6c31de010fcfa120f
BLAKE2b-256 200cc75a9a887d8ab27f36e19554469257cfc32f816acaf3b474dc348be9aa91

See more details on using hashes here.

File details

Details for the file discord_timestamps-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for discord_timestamps-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 74fbe91b68e01ef276ffa063577ac1135dee785d673dd019bf30c9b59db5e0cf
MD5 a8dd0a64cc60ee0d3ae9c746fe44a56a
BLAKE2b-256 3c0bb32e777fbca71eb7af4e65e8a0371b9cbf1cf7168258715d8bfa344a39dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page