Skip to main content

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

  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

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

django-stardate-filter-0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_stardate_filter-0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file django-stardate-filter-0.2.tar.gz.

File metadata

  • Download URL: django-stardate-filter-0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for django-stardate-filter-0.2.tar.gz
Algorithm Hash digest
SHA256 9e230f522ca20b6bce56a9102fc53a1b4410a2e696517697eb9ad78ab632d396
MD5 1d9e736dbcc374a55b5ef37bea4005ab
BLAKE2b-256 7f797436db77ea9e6f3724ff58f0d316e96868ab812188d2852633bb6b3417ab

See more details on using hashes here.

File details

Details for the file django_stardate_filter-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_stardate_filter-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa9631d777f02b9f365936da15636461b17b2d6eee439771f565d451170e254b
MD5 99bbdfd132c027e4b271bcb336f03e49
BLAKE2b-256 5692f70199e165d98a39d6bf1c0dedcd3dc5332fefb087c6be1f27d858530638

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page