Time conversion utilities for parsing and formatting timestamps
Project description
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
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
k3time-0.1.10.tar.gz
(6.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 k3time-0.1.10.tar.gz.
File metadata
- Download URL: k3time-0.1.10.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0504f6b49246645412eae5635ccef7536db4458701b12cdfd4c323c3c7cec45f
|
|
| MD5 |
e570d9c31799efdd38e9ffee1af42eec
|
|
| BLAKE2b-256 |
79f0a28f593e71075689e355a0d5854ef3941f8896223f906d427bba976a8c6f
|
File details
Details for the file k3time-0.1.10-py3-none-any.whl.
File metadata
- Download URL: k3time-0.1.10-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01593b4dcc2001e654126d421507551e2906df1d27134267e3390eef4d5b3c00
|
|
| MD5 |
143e4c97f3d07a9dfdfddecb4e185a67
|
|
| BLAKE2b-256 |
d99ae2899db68aca84499d554b15e4ef28b608e02aeacf319c746141769bfc68
|