Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document CurrentTimestamp's similarity to the new Now Django function #2

Open
Flimm opened this issue Mar 1, 2017 · 0 comments
Open

Comments

@Flimm
Copy link

Flimm commented Mar 1, 2017

Django 1.9 introduced a new Now function:

>>> from django.db.models.functions import Now
>>> Article.objects.filter(published__lte=Now())
<QuerySet [<Article: How to Django>]>

This translates to the SQL STATEMENT_TIMESTAMP on Postgres, and CURRENT_TIMESTAMP on other SQL databases.

It would be nice if the README file documented this similarity for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant