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 Read the Docs for Averager'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.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: discord-timestamps-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d3b8c60ef3eccc33121850fc6c77f31914d2b5a1945ff9543e14feaf27658bf7
MD5 3e89c2c85162578b7038fb7cb0325c62
BLAKE2b-256 6d5bd7214ac6e88601b6aee75d27f659720662a6962ffade41c45608b706cc8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_timestamps-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8d8c7190e2a4c4ebcbf4b10e059d16e5f10a6b633e4e64e60c9ca745d24d7892
MD5 eb347a5bb952d7ed6508bd22f82abf11
BLAKE2b-256 e68de87e696dff52782c31c414aa6c29df6770e112cd450231f8c25d081a3cd7

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 Pingdom Monitoring Sentry Error logging StatusPage Status page