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() |
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.11.tar.gz
(16.9 kB
view hashes)
Built Distribution
Close
Hashes for TimeConvert-3.0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae3289c11263d4d88dde4a52eca28ef0c13246e143411778776948c958f7223 |
|
MD5 | be75db5e20479fc8d54b617822b397f1 |
|
BLAKE2b-256 | 3f2482c226f0810e7079e55498de4ed3cea8f03fe386bde592475f2d7270d979 |