https://github.com/being24/discord-snowflake
A simple tools from discord-snowflake
https://github.com/being24/discord-snowflake
Last synced: 3 months ago
JSON representation
A simple tools from discord-snowflake
- Host: GitHub
- URL: https://github.com/being24/discord-snowflake
- Owner: being24
- License: mit
- Created: 2020-05-28T13:22:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-08T09:48:45.000Z (almost 5 years ago)
- Last Synced: 2025-12-16T17:14:36.639Z (6 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-snowflake
discordの各IDを、datetime型に変換するライブラリ。
d.pyを使うほどではないけれどIDから時間を知りたいときに
## DEMO
```py
import discosnow as ds
if __name__ == "__main__":
message_id = 862620603979005962
print(ds.snowflake2time(message_id))
```
## Requirement
* datetime
## Usage
```bash
https://github.com/being24/discord-snowflake
cd examples
python demo.py
```
## License
"discord-snowflake" is under [MIT license](https://en.wikipedia.org/wiki/MIT_License).