Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Package for date convert between formats

Project Description

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'>
Release History

Release History

This version
History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-dateconv-0.0.9.tar.gz (42.5 kB) Copy SHA256 Checksum SHA256 Source Mar 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting