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.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 | |
|---|---|---|---|
| k3time-0.1.13.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3time-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / k3time-0.1.13.tar.gz
| Download URL | k3time-0.1.13.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4865fc12852b23c64d04addffe1c413d44ef54dc64b02fb8639988c0a5df3a3a
|
|
BLAKE2b-256 checksum How to use checksums |
a8614a1d9e2b750140da949cade17b62036d433f39b750abadf68b0ed6ce09b1
|
| 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.13-py3-none-any.whl
| Download URL | k3time-0.1.13-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb24fbd997da038cda57c9d48075d306d8aa541310b156b4f0208e2dc3d8549f
|
|
BLAKE2b-256 checksum How to use checksums |
b05c25e0069b57936cc322af79754f391c91c1f3f8fbf619738ecbc8bfb7fa95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|