django-stardate-filter-0.2
توضیحات
A django filter to convert a date into a stardate
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-stardate-filter-0.2 |
| نام | django-stardate-filter |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Virgo STYX |
| ایمیل نویسنده | Virgo STYX <virgostyx@gmail.com> |
| آدرس صفحه اصلی | https://youbee-cas.herokuapp.com |
| آدرس اینترنتی | https://pypi.org/project/django-stardate-filter/ |
| مجوز | - |
======================
Django-stardate-filter
======================
Django-stardate-filter is a small Django app implementing a filter to display a date as a Star-Trek stardate in a template.
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "stardate" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'stardate',
]
2. Use the filter with a date as follows for example:
{% now 'Y-m-d H:i' as today %}
{% load stardate %}
<div>Stardate: {{ today|stardate }}</div>
And it display the date provided as a stardate
Please use this app and the code freely
Special thanks to Nicolas FLANDROIS for the conversion formula
Live long and Prosper
نیازمندی
| مقدار | نام |
|---|---|
| >=3.0 | Django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl django-stardate-filter-0.2:
pip install django-stardate-filter-0.2.whl
نصب پکیج tar.gz django-stardate-filter-0.2:
pip install django-stardate-filter-0.2.tar.gz