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.2.tar.gz (5.2 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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file discord_timestamps-1.0.2.tar.gz.

File metadata

  • Download URL: discord_timestamps-1.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for discord_timestamps-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e32100b845a867dbc741baa0a29f9935f2ed715595ef9b46015146b519cc505c
MD5 bbfe3ed779edf0648f96af7c40847efc
BLAKE2b-256 4aa467d197d2aa29bc69707075f8eab1635ccdbc6363bb48e4d489668432cf52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_timestamps-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 104327cb142f4d5c4064b46b9d09862d08ffb62591d20e3cb82324416c03ba74
MD5 5eb77e075f185a8c8d7085e149e08605
BLAKE2b-256 12eb35b4b3430b897fdd33e5d879c493c3dd7ad0839e9a7ffe802c5a41451d92

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

3 files

1.0.0

2 files

Supported by

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