dtim-0.0.2.1
توضیحات
datetime improvement for standard datetime.datetime
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dtim-0.0.2.1 |
| نام | dtim |
| نسخه کتابخانه | 0.0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cuong Manh Le |
| ایمیل نویسنده | cuong.manhle.vn@gmail.com |
| آدرس صفحه اصلی | https://github.com/cuonglm/dtim |
| آدرس اینترنتی | https://pypi.org/project/dtim/ |
| مجوز | BSD |
dtim
====
dtim -- Python DateTime IMprovement
.. image:: https://badge.fury.io/py/dtim.svg
:target: https://badge.fury.io/py/dtim
.. image:: https://travis-ci.org/cuonglm/dtim.svg?branch=master
:target: https://travis-ci.org/cuonglm/dtim
Installation
============
.. code:: sh
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.
NOTE
====
I wrote `dtim` before I know maya_
You should use it, it's great.
.. _maya: https://github.com/kennethreitz/maya
Usage
=====
.. code:: python
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:
.. code:: sh
1465591177.280863
True
False
Author
======
Cuong Manh Le cuong.manhle.vn@gmail.com
License
=======
See `LICENSE <https://github.com/cuonglm/dtim/blob/master/LICENSE>`__
نحوه نصب
نصب پکیج whl dtim-0.0.2.1:
pip install dtim-0.0.2.1.whl
نصب پکیج tar.gz dtim-0.0.2.1:
pip install dtim-0.0.2.1.tar.gz