UnixDateTimeField in Django
Project description
Provides a UnixDateTimeField to your Django models.
Installation
Install it with pip (or easy_install):
pip install django-unixdatetimefield
Usage
First you’ll need to attach a UnixDateTimeField to your model. This acts as a the equivalence of a Django PositiveIntegerField on the database level but provides a Django DateTimeField at the ORM abstraction layer. Example:
from django_unixdatetimefield import UnixDateTimeField class MyModel(models.Model): created_at = UnixDateTimeField()
Check out the source for more configuration values.
Enjoy!
License
BSD, just as the main Django project. See LICENSE file in root of this repo.
Contributing
This project accepts contributions via GitHub pull requests.
follow Google’s Python style guide https://google-styleguide.googlecode.com/svn/trunk/pyguide.html
make commits of logical units, messages should include what changed and why and be written in past tense
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
File details
Details for the file django-unixdatetimefield-0.1.0.tar.gz
.
File metadata
- Download URL: django-unixdatetimefield-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28896cd87a0f642a9eef1cc81fb7e5aafcf23414656d1c3485230425824b19d3 |
|
MD5 | 105edcf1d240116e55bd37aa74a8f99b |
|
BLAKE2b-256 | e47d6c0d187c7351acbfba6a97c667b3df5949908d532d2ca0a44131de3b8ecd |