import time


def time_to_seconds(month, day, year, hour, minute, second):
    """Function returns custom time to seconds passed since epoch.

        Arguments:
                month {int} -- numbers 1-12
                day {int} -- num 1-31
                year {int} -- year in format YYYY
                hour {int} -- num 0-23
                minute {int} -- num 0-59
                second {int} -- num 0-59

        Returns:
                Time %m/%d/%Y %H:%M:%S to seconds passed since epoch.
        """
    choose_time = (f'{month}/{day}/{year} {hour}:{minute}:{second}')
    target_time = time.strptime(choose_time, '%m/%d/%Y %H:%M:%S')
    target_time = time.mktime(target_time)
    return target_time