--
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-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20200523090408.n4vaffayujbzspn4%40cordelia.localdomain.
--
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-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/97fbcab8-3f0f-4277-9296-fdcff7fcdab5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/DCC0D41F-A34F-4FFD-B8CC-39988EBE357E%40tomforb.es.
To unsubscribe from this group and stop receiving emails from it, send an email to django-d...@googlegroups.com.
Maybe the logic for calculating the time before formatting could be taken out of the function? That way it would be far easier to implement your own custom versions of the function without copying and pasting, and makes the code more readable too.