Commit 74be1ff
committed
python: add assumeFuture argument to flux.util.parse_datetime
Problem: The parse_datetime() utility function is statically configured
to assume future dates when a term like "Friday" is given. That is,
instead of giving the date for the previous Friday, the function will
return then next Friday instead. This behavior should be configurable.
Add an assumeFuture parameter to the function which defaults to True.
If set to False, then parse_datetime() will assume dates in the past
instead.1 parent 8596055 commit 74be1ff
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
| |||
0 commit comments