Opened 5 years ago

Last modified 5 years ago

#30989 closed Cleanup/optimization

Implement `B` time format (Swatch Internet Time) — at Initial Version

Reported by: Baptiste Mispelon Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Since the first public commit, Django has reserved the B time format but raising a NotImplementedError when trying to use it.
According to the docstring, it's supposed to be for the [Swatch Internet Time](https://en.wikipedia.org/wiki/Swatch_Internet_Time).

I've personally never heard of this format and I'm not sure how useful it is, but I suspect this was done to copy [PHP's date function](https://www.php.net/manual/en/function.date.php) and its formats.

I'm attaching a pull request that implements the format (I think).

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top