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
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TimeConvert-3.0.12.tar.gz.
File metadata
- Download URL: TimeConvert-3.0.12.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34aee8402be03a5538dfc4a1c93f20a25e8b5f9ee3acff5dd71be01908fba733
|
|
| MD5 |
da793df245c6be7ebefb4918f58ef440
|
|
| BLAKE2b-256 |
657ad799d532b310842ab93840cf910924bd8dae3f444eca4cec49f2300dd7ad
|
File details
Details for the file TimeConvert-3.0.12-py2.py3-none-any.whl.
File metadata
- Download URL: TimeConvert-3.0.12-py2.py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14bbd5373708585b72e2c8b40af045fcf2261b00b2d24eb68ca6722ba4da067
|
|
| MD5 |
98619bf6ba3cf2e347c02c3a63b85118
|
|
| BLAKE2b-256 |
548f034f5d0791196036c87b7f608b4e696392255d0b221b35dd38e38e5beb8c
|