from datetime import datetime


def gmt_epoch(mtime: str) -> int:
    """Convert YYYY-MM-DD HH:MM:SS in GMT to epoch."""
    utc_time = datetime.strptime(mtime, '%Y-%m-%d %H:%M:%S')
    return int((utc_time - datetime(1970, 1, 1)).total_seconds())