A django filter to convert a date into a stardate
Project description
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
Add “stardate” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'stardate', ]
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-stardate-filter-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e230f522ca20b6bce56a9102fc53a1b4410a2e696517697eb9ad78ab632d396 |
|
MD5 | 1d9e736dbcc374a55b5ef37bea4005ab |
|
BLAKE2b-256 | 7f797436db77ea9e6f3724ff58f0d316e96868ab812188d2852633bb6b3417ab |
Close
Hashes for django_stardate_filter-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9631d777f02b9f365936da15636461b17b2d6eee439771f565d451170e254b |
|
MD5 | 99bbdfd132c027e4b271bcb336f03e49 |
|
BLAKE2b-256 | 5692f70199e165d98a39d6bf1c0dedcd3dc5332fefb087c6be1f27d858530638 |