def timedelta_to_hms(value):
    """
    Return hours, minutes, seconds from a timedelta object
    """
    hours, remainder = divmod(int(value.total_seconds()), 3600)
    minutes, seconds = divmod(remainder, 60)
    return hours, minutes, seconds