python-dateconv
Description
Simple package for convert time between types
Usage
$ pip install python-dateconv
from dateconv import *
human_time = '2015-01-01 18:21:26'
datetime_time = datetime.datetime(2015, 1, 1, 18, 21, 26)
my_unix_time = 1420136486
print(d2u(datetime_time))
# 1420114886
print(d2h(datetime_time))
# 2015-01-01 18:21:26
print(h2u(human_time))
# 1420114886
print(type(h2d(human_time)))
# <type 'datetime.datetime'>
print(u2h(my_unix_time))
# 2015-01-01 18:21:26
print(type(u2d(my_unix_time)))
# <type 'datetime.datetime'>
Metadata
Release files for python-dateconv 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-dateconv-0.0.9.tar.gz | 42.5 kB | Details |
Release files / python-dateconv-0.0.9.tar.gz
| Download URL | python-dateconv-0.0.9.tar.gz |
|---|---|
| Size | 42.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80de8e015951c6235af6a55dc6a9b39720af96aade5b3f2b849228b77206d9bb
|
|
BLAKE2b-256 checksum How to use checksums |
47abd9f52881431f1417dfed146fd09bd7c376e7871bcd2390993bcb80d553ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |