/* Returns the total number of whole hours in the specified timespan  */
int32_t timespanToHours(timespan_t *timespan)
/* Returns the total number of whole hours in the specified timespan  */
int32_t timespanToHours(timespan_t *timespan)
{
  if (timespan->days == 0)
  {
    return timespan->hours;
  }
  return timespan->hours + (timespan->days * 24);
}