import time


def StringToEpochTime ( string ):
    """ Converts a time string in the format 'YYYYMMDDhhmm' in to a Unix time integer. """
    return time.mktime ( time.strptime ( string, '%Y%m%d%H%M' ) );