def first_building(building, player):
    """Find when the first building of a given type was constructed."""
    for item in player['build']:
        if item['building'] == building:
            return item['timestamp']