def avg_duration_in_seconds_readable(self): avg_duration_in_seconds_readable = self.avg_duration_in_seconds() work_days, hours, minutes, seconds = ihm_time.translate_seconds( avg_duration_in_seconds_readable) work_days, hours, minutes, seconds = ihm_time.make_pretty_for_printing( work_days, hours, minutes, seconds) return ('{0}, {1}, {2}, {3}').format(work_days, hours, minutes, seconds)
def yearly_ideal_time_cost_readable(self): yearly_ideal_time_cost = self.YEARLY_IDEAL_COST_IN_SECONDS work_days, hours, minutes, seconds = ihm_time.translate_seconds( yearly_ideal_time_cost) work_days, hours, minutes, seconds = ihm_time.make_pretty_for_printing( work_days, hours, minutes, seconds) yearly_ideal_time_cost = ('{0}, {1}, {2}, {3}').format( work_days, hours, minutes, seconds) return yearly_ideal_time_cost
def yearly_time_recovered_readable(self): time_recovered_yearly = self.yearly_time_recovered_in_seconds() days, hours, minutes, seconds = ihm_time.translate_seconds( time_recovered_yearly) days, hours, minutes, seconds = ihm_time.make_pretty_for_printing( days, hours, minutes, seconds) time_recovered_yearly = ('{0}, {1}, {2}, {3}').format( days, hours, minutes, seconds) return time_recovered_yearly
def yearly_cost_in_seconds_readable(self): seconds = self.yearly_cost_in_seconds() work_days, hours, minutes, seconds = ihm_time.translate_seconds( seconds) work_days, hours, minutes, seconds = ihm_time.make_pretty_for_printing( work_days, hours, minutes, seconds) yearly_cost_in_seconds_readable = ('{0}, {1}, {2}, {3}').format( work_days, hours, minutes, seconds) return yearly_cost_in_seconds_readable
def avg_cost_in_seconds_readable(self): avg_cost_in_seconds = float( self.get_weekly_cost_in_seconds()) / self.get_num_start_times() work_days, hours, minutes, seconds = ihm_time.translate_seconds( avg_cost_in_seconds) work_days, hours, minutes, seconds = ihm_time.make_pretty_for_printing( work_days, hours, minutes, seconds) return ('{0}, {1}, {2}, {3}').format(work_days, hours, minutes, seconds)
def weekly_time_recovered_readable(self): weekly_time_recovered_in_seconds = self.weekly_time_recovered_in_seconds( ) work_days, hours, minutes, seconds = ihm_time.translate_seconds( weekly_time_recovered_in_seconds) work_days, hours, minutes, seconds = ihm_time.make_pretty_for_printing( work_days, hours, minutes, seconds) weekly_time_recovered_in_seconds = ('{0}, {1}, {2}, {3}').format( work_days, hours, minutes, seconds) return weekly_time_recovered_in_seconds