'Returns a datetime.time object if cell type is XL_CELL_DATE else
raises a TypeError.'

def time(self):

    if self.is_datetime:
        date = xldate_as_tuple(self.value, self.book.datemode)
        return datetime.time(date[3], date[4], date[5])
    else:
        raise TypeError('Cell    is    not    a    XL_CELL_DATE.')
