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
Metadata
Release files for TimeConvert 3.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TimeConvert-3.0.13.tar.gz | 18.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TimeConvert-3.0.13-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 37.9 kB
Release files / TimeConvert-3.0.13.tar.gz
| Download URL | TimeConvert-3.0.13.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f4ca99a7e88afe6e19d2d7578078555288055e362f0d170a1e35a8dadf38f03
|
|
BLAKE2b-256 checksum How to use checksums |
ae3e6daa9585a1fa17c25d854e4c6bd2ae53b2a075c081416e39d80ff29957ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / TimeConvert-3.0.13-py2.py3-none-any.whl
| Download URL | TimeConvert-3.0.13-py2.py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9fa7f2eb43c17b8636171c98a8f599d9308b003395322f11cd4cdaba68cdc89a
|
|
BLAKE2b-256 checksum How to use checksums |
4a1b17a8ec28c57b695ce910221a48dbe2b4ac145981f6e97c45d1edc441532d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|