Mercurial > getan
changeset 403:f656d9370085
getan-report.py: improves -t output format.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 14:57:32 +0100 |
parents | 9d4a8f7da935 |
children | c272982799b5 |
files | scripts/getan-report.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/getan-report.py Fri Feb 03 14:32:55 2017 +0100 +++ b/scripts/getan-report.py Fri Feb 03 14:57:32 2017 +0100 @@ -138,7 +138,8 @@ if start_time >= report_range_start and start_time < report_range_end: if args.t: - print("{2}: {3} {4}\n\t\t\t{0} {1}". + print("{0:%Y-%m-%d %H:%M}-\n" + "{1:%Y-%m-%d %H:%M} {4} {2}: {3}\n". format(start_time, stop_time, desc, e[4], hhhmm_from_timedelta(length))) else: