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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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