#24793: Subtracting DateTime fields in a query expression should use timediff
-------------------------------------+-------------------------------------
Reporter: sparkyb | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Normal | Resolution:
Keywords: datetime duration | Triage Stage: Accepted
expression |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by LegoStormtroopr):
@jarshwah
I've got a work around that I think works for SQLite using SQLites native
`julianday` function, and am keen to progress this as an actual solution,
but the code is a little dense for me.
Would you be able to point me in the direction of where the subtract
expressions are handled?
--
Ticket URL: <https://code.djangoproject.com/ticket/24793#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.00e2db709d986fa071895b84bf05d6de%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.