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.12.tar.gz
(17.4 kB
view hashes)
Built Distribution
Close
Hashes for TimeConvert-3.0.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d14bbd5373708585b72e2c8b40af045fcf2261b00b2d24eb68ca6722ba4da067 |
|
MD5 | 98619bf6ba3cf2e347c02c3a63b85118 |
|
BLAKE2b-256 | 548f034f5d0791196036c87b7f608b4e696392255d0b221b35dd38e38e5beb8c |