from datetime import datetime


def epoch_time(tstamp):
    """Convert IRIG timestamp into nanoseconds since 1970-01-01T00:00:00Z"""
    t = datetime.strptime(tstamp, '%Y/%m/%d %H:%M:%S.%f').timestamp()
    return int(t * 1_000_000_000)