import time


def date_to_TS(date, form='%Y-%m-%d %H:%M:%S'):
    """ Use your local time-zone to convert date in specific format to
    timestamp.

    Parameters
    ----------
    date : str
        A date to convert.
    form : str (default '%Y-%m-%d %H:%M:%S')
        Time format.

    Returns
    -------
    TS : int
        Timestamp of specified date.

    Examples
    --------
    # >>> date_to_TS('19-01-25 16:01:39', form='%y-%m-%d %H:%M:%S')
    # 1548428499

    """
    return int(time.mktime(time.strptime(date, form)))