bin/time-in: adjust output formatting

This commit is contained in:
Henrik Lissner 2017-04-21 02:16:33 -04:00
parent d529398acc
commit dd6a0254c1

View file

@ -103,9 +103,9 @@ if __name__ == '__main__':
then = here.astimezone(timezone(d_tzname)) then = here.astimezone(timezone(d_tzname))
diff = diff(here, then) diff = diff(here, then)
print("{:30}{} ({} {})".format( print("{:24} {}\t{} {}".format(
d_coords['name'], d_coords['name'],
then.isoformat(), then,
diff, diff,
"ago" if then < here else "ahead" "ago" if then < here else "ahead"
)) ))