'Set or replace all timestamps. The given timestamps must be in a
list or set where each item is a timestamp
Arguments:
timestamps -- A series of timestamps.'

def set_timestamps(self, timestamps):

    self.del_timestamps()
    for timestamp in timestamps:
        if isinstance(timestamp, Timestamp):
            self.add_timestamp(timestamp['value'], substanzas=timestamp['substanzas'])
        else:
            self.add_timestamp(timestamp)
