from datetime import datetime


def output_src_addr(pnr, settings):
    """
    Output source address and current time in pnr header.
    """
    out = []
    out_append = out.append
    out_append('.')

    if pnr['remote_pnr']:
        out_append(pnr['remote_system'][:3])
        out_append('RM')
        out_append(pnr['remote_system'][3:])
    else:
        out_append('MOWRM1H')

    out_append(' ')
    out_append(datetime.now().strftime('%d%H%M'))

    return ''.join(out)