Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

datetime improvement for standard datetime.datetime

Project Description

dtim

dtim – Python DateTime IMprovement

https://travis-ci.org/Gnouc/dtim.svg?branch=master

Installation

pip install dtim

Why dtim

Python standard datetime.datetime is awesome, but lack some of common methods like computing timestamps, checking naive, aware datetime easily.

dtim comes in for simplification.

Usage

from dtim import DateTime


dt = DateTime.now()

# Number of seconds since epoch
print dt.epoch()

# Check datetime is naive
print dt.is_naive()

# Check datetime is aware
print dt.is_aware()

Output:

1465591177.280863
True
False

Author

Cuong Manh Le cuong.manhle.vn@gmail.com

License

See LICENSE

Release history Release notifications

This version
History Node

0.0.2.0

History Node

0.0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dtim-0.0.2.0.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Jun 11, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page