import time


def timestamp2time( timestamp ):
    """ convert a timestamp in yyyy.mm.dd.hh.mm.ss format to seconds for comparisons """
    return time.mktime(time.strptime(timestamp,"%Y.%m.%d.%H.%M.%S"))