You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than returning a dictionary with all the Oxfordised date attributes we should likely return a datetime subclass. Note that since datetime is immutable you don't subclass it with init but rather with new. This way we can just add a bunch of oxfordised attributes to a regular datetime object.
Makes sense no? You could even consider monkeypatching the stdlib to always return you an oxfordised date, that would be quite evil though
The text was updated successfully, but these errors were encountered:
Rather than returning a dictionary with all the Oxfordised date attributes we should likely return a datetime subclass. Note that since datetime is immutable you don't subclass it with init but rather with new. This way we can just add a bunch of oxfordised attributes to a regular datetime object.
Makes sense no? You could even consider monkeypatching the stdlib to always return you an oxfordised date, that would be quite evil though
The text was updated successfully, but these errors were encountered: