django-datetime-helpers-0.0.1
توضیحات
Frequently used functions and constants about datetime in Django projects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | django-datetime-helpers-0.0.1 |
| نام | django-datetime-helpers |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | eugen1j |
| ایمیل نویسنده | eugenij.bondar@gmail.com |
| آدرس صفحه اصلی | https://github.com/eugen1j/django-datetime-helpers |
| آدرس اینترنتی | https://pypi.org/project/django-datetime-helpers/ |
| مجوز | MIT |
# django-datetime-helpers
[](https://travis-ci.org/eugen1j/django-datetime-helpers)
[](https://codecov.io/gh/eugen1j/django-datetime-helpers)
[](https://badge.fury.io/py/django-datetime-helpers)
[](https://github.com/eugen1j/django-datetime-helpers/blob/master/LICENSE)
Frequently used functions and constants about datetime in Django projects
## Installing
pip install django-datetime-helpers
## Examples
# Quering all Users who join today
users = User.objects.filter(
created_at__date=today()
)
# Quering all Users who join in last 12 hours
users = User.objects.filter(
created_at__gte=secons_ago(12 * HOUR)
)
# Declaring constanst
USER_SOMETHING_TIMEOUT = 5 * MINUTE
# Waiting for something
time.sleep(MINUTE)
For more examples see [source code](https://github.com/eugen1j/django-datetime-helpers/blob/master/django_datetime_helpers/helpers.py).
نیازمندی
| مقدار | نام |
|---|---|
| - | django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.0 | Python |
نحوه نصب
نصب پکیج whl django-datetime-helpers-0.0.1:
pip install django-datetime-helpers-0.0.1.whl
نصب پکیج tar.gz django-datetime-helpers-0.0.1:
pip install django-datetime-helpers-0.0.1.tar.gz