diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2022-10-12 23:20:32 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-05 05:59:26 +0100 |
| commit | 41ca2afd1ce49949d509177987c3b4b7c8ba3fa1 (patch) | |
| tree | 7d878479b3b48df55f2c23527e2444b5e7607149 /tests/utils_tests/test_dateformat.py | |
| parent | d7a8ab3513dbee10a04e1f7156457b9c83754bf5 (diff) | |
Simplified django.utils.dateformat.DateFormat.O()/t()/e() a bit.
O() - we should try to avoid calling specifier methods from each other
to avoid extra function call overhead. In addition we end up, in this
case, duplicating the ambiguous/imaginary datetime checks. We're also
going to be looking at simplifying things by having all of these
specifier methods return strings and not an random mix of types.
t() - the value can only be one of 28, 29, 30, or 31. As such, there is
no need to zero-pad to a width of two.
Diffstat (limited to 'tests/utils_tests/test_dateformat.py')
0 files changed, 0 insertions, 0 deletions
