|
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'}), |
@@ -875,7 +875,7 @@ def hour(self) -> int: |
875 | 875 | return self.__time.hour |
876 | 876 |
|
877 | 877 | @property |
878 | | - def hour12(self) -> int: |
| 878 | + def _hour12(self) -> int: |
879 | 879 | """Return the hour on a 12-hour clock (1..12), used by the %I directive.""" |
880 | 880 | hour = self.hour % 12 |
881 | 881 | return 12 if hour == 0 else hour |
|
0 commit comments