一个简单的时间格式化工具
Project description
imtime
一个简单的时间格式化工具,提供 get_now() 函数,支持多种时间格式输出。
安装
pip install imtime
# 使用示例
from imtime import get_now
print(get_now('date')) # 2025-04-25
print(get_now('time')) # 14:30:45
print(get_now('datetime')) # 2025-04-25 14:30:45
print(get_now('filename')) # 20250425_143045
print(get_now('timestamp')) # 1684153845.123456
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imtime-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imtime-0.1.0.tar.gz.
File metadata
- Download URL: imtime-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3ec63bb8527fd8428e38d29a4d20f4421bf83d2e98001d9a41de4c0565fe08e
|
|
| MD5 |
42af93d016deab21134e8da8af8ca11d
|
|
| BLAKE2b-256 |
105790358f0c3dba839c273b98810cb61a4144e8fbba761ca3b1e2c9e2b68eef
|
File details
Details for the file imtime-0.1.0-py3-none-any.whl.
File metadata
- Download URL: imtime-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2227cee9c4dae38ce09e9f4dbe2bad32e6c611264f8a2663e4aad5139468fd5
|
|
| MD5 |
1ef02b932ad7c7aa99fa529aac1d3db3
|
|
| BLAKE2b-256 |
49d6250ddfde106bf8068a6b253413a144c635c783b8f9d95dc1de4175bd0efd
|