Re: timesince and timeuntil - should we use python-dateutil?

2022-08-03 Thread 'st...@jigsawtech.co.uk' via Django developers (Contributions to Django itself)
I'd suggest the docs are updated with a warning relating to what's Uri's found as it could be extremely important to someone and not highlighting it would be misleading . On Tuesday, 2 August 2022 at 16:31:33 UTC+1 Uri wrote: > Hi, > > I created my own utility function: > > > > *from dateutil.re

Re: timesince and timeuntil - should we use python-dateutil?

2022-08-02 Thread אורי
Hi, I created my own utility function: *from dateutil.relativedelta import relativedelta* *from django.utils.timesince import TIME_STRINGS as timesince_time_strings**from django.utils.html import avoid_wrapping* *from django.utils.translation import gettext, get_language* *d

Re: timesince and timeuntil - should we use python-dateutil?

2022-08-02 Thread אורי
Hi Carlton, I understand, thank you. Uri Rodberg, Speedy Net אורי u...@speedy.net On Tue, Aug 2, 2022 at 10:54 AM Carlton Gibson wrote: > Hey Uri. > > Historically, taking on extra dependencies isn't something we've done > lightly. > The packaging situation is a lot better these days than it

Re: timesince and timeuntil - should we use python-dateutil?

2022-08-02 Thread Carlton Gibson
Hey Uri. Historically, taking on extra dependencies isn't something we've done lightly. The packaging situation is a lot better these days than it was in earlier years, but with the concerns about supply chain security I think maintaining that position is worthwhile. If we were to take on python-d

timesince and timeuntil - should we use python-dateutil?

2022-08-01 Thread אורי
Hi, Lately I discovered some inaccuracy bugs in timesince (and timeuntil), and I created a ticket (#33879 ). In short, the problems are when calculating a year minus one week, 2 weeks, one day etc. and also 2 years minus one or 2 days. In all such cases