def floating_point_to_datetime(day, fp_time):
    """Convert a floating point time to a datetime."""
    result = datetime(year=day.year, month=day.month, day=day.day)
    result += timedelta(minutes=math.ceil(60 * fp_time))
    return result