Skip to main content

A simple tools comvert from discord id to datetime

Project description

discord-snowflake

discordの各IDを、datetime型に変換するライブラリ。 d.pyを使うほどではないけれどIDから時間を知りたいときに

DEMO

import discosnow as ds

if __name__ == "__main__":
    message_id = 862620603979005962

    print(ds.snowflake2time(message_id))

Requirement

  • datetime

Usage

https://github.com/being24/discord-snowflake
cd examples
python demo.py

License

"discord-snowflake" is under MIT license.

Project details


Download files

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

Source Distribution

discosnow-0.0.5.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

discosnow-0.0.5-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page