-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move datetime-specific code from date methods into datetime class
_strftime_p: only raises Exception (AttributeError) on date objects because dates do not have hour attribute. _strftime_z: only raises AttributeError on a date class becuase date does not have utcoffset attribute. _strftime_cap_z: date does not have tzname attribute, but datetime has.
- Loading branch information
Showing
1 changed file
with
29 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters