def to_seconds_from_epoch()

in sdap/processors/extracttimestampprocessor.py [0:0]


def to_seconds_from_epoch(timestamp, pattern):
    try:
        seconds = int(time.mktime(time.strptime(timestamp, pattern)))
        return seconds
    except ValueError:
        logging.error('{} timestamp is not of the format {}'.format(timestamp, pattern))