ui.py

changeset 51
1614b2184bb4
parent 50
2d8947351727
child 55
407af23d16bb
equal deleted inserted replaced
50:2d8947351727 51:1614b2184bb4
74 # Operation scheduled 74 # Operation scheduled
75 when=status['when'] 75 when=status['when']
76 now=time.time() 76 now=time.time()
77 if when<now: 77 if when<now:
78 whenstr='overdue' 78 whenstr='overdue'
79 detail=''
79 else: 80 else:
80 diff=datetime.timedelta(seconds=when-now) 81 diff=datetime.timedelta(seconds=when-now)
81 if diff.days>0: 82 if diff.days>0:
82 whenday=datetime.date.fromtimestamp(when) 83 whenday=datetime.date.fromtimestamp(when)
83 whenstr='on %s' % whenday.isoformat() 84 whenstr='on %s' % whenday.isoformat()

mercurial