Commit 75b97a7
BUG: Fix TimeFormatter behavior with fractional seconds
closes #18478
Author: Nis Martensen <nis.martensen@web.de>
Closes #18552 from nmartensen/time_formatter and squashes the following commits:
c1ace38 [Nis Martensen] TimeFormatter: Docstring: add parameters and returns sections
9b8bde4 [Nis Martensen] test_datetimelike::test_time: update expected results
75ae4f1 [Nis Martensen] test_datetimelike::test_time*: make testing tick labels actually work
8157c35 [Nis Martensen] test_converter::test_time_formatter: comment, formatting
d7fa51f [Nis Martensen] TimeFormatter: Add __call__ docstring
1a11153 [Nis Martensen] simplify
e7d5b0d [Nis Martensen] Add whatsnew entry
91bf9b2 [Nis Martensen] Add some TimeFormatter test comparisons
c86238c [Nis Martensen] TimeFormatter: Only show seconds if non-zero
9a78cd7 [Nis Martensen] TimeFormatter: use round() for microseconds
9efa68c [Nis Martensen] Fix TimeFormatter for fractional seconds1 parent 7a1b0ee commit 75b97a7
File tree
4 files changed
+77
-20
lines changed- doc/source/whatsnew
- pandas
- plotting
- tests/plotting
4 files changed
+77
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
194 | 211 | | |
195 | | - | |
196 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
200 | 218 | | |
201 | | - | |
| 219 | + | |
202 | 220 | | |
203 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
204 | 224 | | |
205 | | - | |
| 225 | + | |
206 | 226 | | |
207 | 227 | | |
208 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
240 | 261 | | |
241 | 262 | | |
242 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
| 1035 | + | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
| 1039 | + | |
1039 | 1040 | | |
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
1043 | 1044 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1047 | 1051 | | |
1048 | 1052 | | |
1049 | 1053 | | |
1050 | 1054 | | |
1051 | 1055 | | |
1052 | 1056 | | |
| 1057 | + | |
1053 | 1058 | | |
1054 | 1059 | | |
1055 | 1060 | | |
1056 | 1061 | | |
1057 | 1062 | | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1061 | 1069 | | |
1062 | 1070 | | |
1063 | 1071 | | |
| |||
1069 | 1077 | | |
1070 | 1078 | | |
1071 | 1079 | | |
1072 | | - | |
| 1080 | + | |
1073 | 1081 | | |
1074 | 1082 | | |
1075 | 1083 | | |
| 1084 | + | |
1076 | 1085 | | |
1077 | 1086 | | |
1078 | 1087 | | |
1079 | 1088 | | |
1080 | 1089 | | |
1081 | | - | |
1082 | | - | |
| 1090 | + | |
1083 | 1091 | | |
1084 | 1092 | | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1088 | 1103 | | |
1089 | 1104 | | |
1090 | 1105 | | |
| |||
0 commit comments