import time


def convertToUnixTime(rtstamp):
    """Converts given timestamp, seconds since Epoch(1/1/1970), to Ripple Timestamp, seconds since Ripple Epoch (1/1/2000)

    Args:
        tstamp (timestamp, optional): The timestamp (seconds from Epoch). Defaults to time.time().

    Returns:
        timestamp: Ripple Timestamp, seconds since Ripple Epoch (1/1/2000)
    """
    ripple_epoch = time.mktime(time.strptime("20000101000000", "%Y%m%d%H%M%S"))
    return rtstamp + ripple_epoch