|
45 | 45 | '%f': ('_strftime_get_attr_value', {'attr': 'microsecond', 'fmt': '%06.d', 'fb': '000000'}), |
46 | 46 | '%H': ('_strftime_get_attr_value', {'attr': 'hour', 'fmt': '%02.d', 'fb': '00'}), |
47 | 47 | '%-H': ('_strftime_get_attr_value', {'attr': 'hour', 'fmt': '%d', 'fb': '0'}), |
48 | | - '%I': ('_strftime_get_attr_value', {'attr': 'hour12', 'fmt': '%02.d', 'fb': '12'}), |
49 | | - '%-I': ('_strftime_get_attr_value', {'attr': 'hour12', 'fmt': '%d', 'fb': '12'}), |
| 48 | + '%I': ('_strftime_get_attr_value', {'attr': '_hour12', 'fmt': '%02.d', 'fb': '12'}), |
| 49 | + '%-I': ('_strftime_get_attr_value', {'attr': '_hour12', 'fmt': '%d', 'fb': '12'}), |
50 | 50 | '%M': ('_strftime_get_attr_value', {'attr': 'minute', 'fmt': '%02.d', 'fb': '00'}), |
51 | 51 | '%-M': ('_strftime_get_attr_value', {'attr': 'minute', 'fmt': '%d', 'fb': '0'}), |
52 | 52 | '%S': ('_strftime_get_attr_value', {'attr': 'second', 'fmt': '%02.d', 'fb': '00'}), |
@@ -872,7 +872,7 @@ def hour(self) -> int: |
872 | 872 | return self.__time.hour |
873 | 873 |
|
874 | 874 | @property |
875 | | - def hour12(self) -> int: |
| 875 | + def _hour12(self) -> int: |
876 | 876 | """Return the hour on a 12-hour clock (1..12), used by the %I directive.""" |
877 | 877 | hour = self.hour % 12 |
878 | 878 | return 12 if hour == 0 else hour |
|
0 commit comments