hours: remove end-week projection; clean up status format

This commit is contained in:
Josh Holtrop 2011-06-30 10:50:46 -04:00
parent 2f6846e09e
commit 9a99931e19

9
hours
View File

@ -190,12 +190,9 @@ def main(argv):
d += timedelta(1) d += timedelta(1)
border() border()
sys.stdout.write('Total: %.1f hours' % round(total_hours, 1)) sys.stdout.write(
'at %.1f, goal %.1f, %.1f remain' % (total_hours, goal_hours,
if total_hours < goal_hours: goal_hours - total_hours))
out_time = now + timedelta(0, (goal_hours - total_hours) * 60 * 60)
sys.stdout.write('; %.1f at: %s %s' % (goal_hours,
out_time.strftime('%a %d'), fmt_time_dt(out_time)))
sys.stdout.write('\n') sys.stdout.write('\n')
if __name__ == "__main__": if __name__ == "__main__":