sample time module
Project description
一个简易的时间模块,包含常用的时间方法,仅支持python3
安装:
pip install python-time
使用方法,例如:
from pytime import time
print(pytime.timestamps())
输出:
1576225887
提供的所有方法:
pytime.timestamps()
pytime.microtime()
pytime.time_format(timestamp=None, format="%Y-%m-%d %X")
pytime.strtotime(format_time)
pytime.shift(time_type: str, timestamp: int=None)
pytime.sleep(second: int)
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
python-time-0.3.0.tar.gz
(2.6 kB
view details)
File details
Details for the file python-time-0.3.0.tar.gz
.
File metadata
- Download URL: python-time-0.3.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0295498bdee3099dd0da87572102456672e38d4703272cf646c87744c2ca39f8 |
|
MD5 | 8a1b3b4829ffa15d88cfc2fb0144a187 |
|
BLAKE2b-256 | a980406cfcce19e6c6d6304cb24583208068ac952586681b706abc11865f6753 |