Commit 2355579
committed
python: support
Problem: The `!d` conversion specifier converts timestamps to
UtilDatetime objects which support a `::` separator in order to allow
a format after the datetime format specification. However, since the
format is applied within the UtilDatetime format() method, the `h`
suffix is not supported to replace empty fields with a hyphen.
Check for a `h` suffix in the UtilDatetime.format() method and replace
an empty string with `-`.
Ignore UtilDatetime objects where `h` is normally handled so that
the suffix can later be processed in UtilDatetime.format()h suffix with !d conversion specifier1 parent bf96eac commit 2355579
1 file changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
322 | 332 | | |
323 | 333 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
| |||
424 | 433 | | |
425 | 434 | | |
426 | 435 | | |
427 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
428 | 440 | | |
429 | 441 | | |
430 | 442 | | |
| |||
0 commit comments