Skip to main content

一个简易的时间模块,包含常用的时间方法,仅支持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)

Metadata

Release files for python-time 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-time 0.3.0
File Size Uploaded
python-time-0.3.0.tar.gz 2.6 kB Details

Release files / python-time-0.3.0.tar.gz

Download URL python-time-0.3.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0295498bdee3099dd0da87572102456672e38d4703272cf646c87744c2ca39f8
BLAKE2b-256 checksum
How to use checksums
a980406cfcce19e6c6d6304cb24583208068ac952586681b706abc11865f6753
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page