def find_bag_by_time(bags, timestamp):
    """Find bag name by given timestamp."""
    for bag in bags:
        if timestamp <= bag.end_time:
            return bag.name if timestamp >= bag.start_time else 'None'
    return 'Null'