the AGE function takes in two timestamps and returns an interval.  You can 
do this in python by subtracting two date/datetime objects and getting a 
timedelta.  what would the difference be to kick this out to the db?
On Tuesday, January 17, 2023 at 11:11:37 AM UTC-5 niccol...@gmail.com wrote:

> How would you see adding the "AGE" function to the current set of 
> PostgreSQL ORM functions?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/17148207-2d4e-4163-86ce-0691e14ab7fan%40googlegroups.com.
  • Pro... Niccolò Mineo
    • ... Jason Johns
      • ... Jörg Breitbart
        • ... Carlton Gibson
          • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
            • ... Jörg Breitbart

Reply via email to