k3time
Time convertion utils
k3time is a component of pykit3 project: a python3 toolkit set.
Time convertion utils.
>>> parse('2017-01-24T07:51:59.000Z', 'iso')
datetime.datetime(2017, 1, 24, 7, 51, 59)
>>> format_ts(1485216000, 'iso')
'2017-01-24T00:00:00.000Z'
>>> format_ts(1485216000, '%Y-%m-%d')
'2017-01-24'
Install
pip install k3time
Synopsis
>>> parse('2017-01-24T07:51:59.000Z', 'iso')
datetime.datetime(2017, 1, 24, 7, 51, 59)
>>> format_ts(1485216000, 'iso')
'2017-01-24T00:00:00.000Z'
>>> format_ts(1485216000, '%Y-%m-%d')
'2017-01-24'
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Metadata
Release files for k3time 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k3time-0.1.11.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3time-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / k3time-0.1.11.tar.gz
| Download URL | k3time-0.1.11.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b012664ab09575c80ed64c2d77a757c9c87ab52f468011b92b86d51c52418d0
|
|
BLAKE2b-256 checksum How to use checksums |
14b5fbcc782f6c32bf91a120ea9b047251493a1eda505da677b7b8a37e6c4a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / k3time-0.1.11-py3-none-any.whl
| Download URL | k3time-0.1.11-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88035ac16ace2485add7f7ac818d45db88af21f169846cb1edfd3fa3b457a6bd
|
|
BLAKE2b-256 checksum How to use checksums |
5f0afaacd31521579dadf3ef40aa662961fdd59205e9cc09f2cc0806a33421f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|