def __repr__(self): return "<%s %0.2fh @ %s>"%(self.task_id,self.duration/3600.0,time2dt(self.start_time).strftime("%m%dT%H%M"))
def item_month(itm): tm = time2dt(itm.start_time) return tm.year,tm.month
def item_year(itm): tm = time2dt(itm.start_time) return tm.year
def item_week(itm): tm = time2dt(itm.start_time) return tm.year,tm.isocalendar()[1]