<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def daily_hours(self,local=False):
 """ This returns a number from 0 to 24 that describes the number of hours passed in a day. This is very useful for hr.attendances """

        data = self.get(local)
        daily_hours = (data.hour +
                       data.minute / 60.0 +
                       data.second / 3600.0)
        return round(daily_hours,2)