date 1 - date 2 On Sun, Jul 12, 2015, 2:02 PM Brandon Keith Biggs < brandonkeithbi...@gmail.com> wrote:
> Hello, > using the django.utils.timezone.now() function, how can I find the > difference from another date in years? > For example, if I have two dates like: > date1 = (1991, 12, 23) > date2 = (1995, 12, 6) > > How do I use the current time to get 23 from the first and 19 from the > second? > thank you, > > -- > Brandon Keith Biggs <http://www.brandonkeithbiggs.com/> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/55A20F97.8070106%40gmail.com > <https://groups.google.com/d/msgid/django-users/55A20F97.8070106%40gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tKm%2BCFiHAujPoU%2B%3DD5O%2BTUR18k%2BdENzj0w1aE0xcE35xw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.