Time Convert for Humans™
Project description
TimeConvert
TimeConvert is a simple time convert script(library) for Python, built for human beings.
Installation
pip install TimeConvert
Usage
from TimeConvert import TimeConvert as tc
tc.utc_timestamp()
Comparison
Function Points | TimeConvert | Other |
---|---|---|
TimeStamp | tc.local_timestamp(ms=True) | time.time() |
ISOFormat | tc.local_isostring() | datetime.datetime.now().isoformat() |
Variable
# Default Asia/Shanghai & %Y-%m-%d %H:%M:%S
from TimeConvert import TIME_ZONE, TIME_FORMAT
# Deassign TIME_ZONE & TIME_FORMAT
tc.__init__(timezone='Asia/Shanghai', format='%Y-%m-%d %H:%M:%S')
Reference
- isoweek.py - https://github.com/gisle/isoweek
- month.py - https://github.com/kstark/months
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
TimeConvert-3.0.13.tar.gz
(18.4 kB
view hashes)
Built Distribution
Close
Hashes for TimeConvert-3.0.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa7f2eb43c17b8636171c98a8f599d9308b003395322f11cd4cdaba68cdc89a |
|
MD5 | a018fed899ea3ecdb7390c74d8113dee |
|
BLAKE2b-256 | 4a1b17a8ec28c57b695ce910221a48dbe2b4ac145981f6e97c45d1edc441532d |