def write_toc(destdir, subd, _hisdate):
    with open(f'{destdir}/../hisdate_{subd:02}.txt', mode='w') as fid:
        fid.write(_hisdate)
def write_toc(destdir, subd, _hisdate):
    with open(f'{destdir}/../hisdate_{subd:02}.txt', mode='w') as fid:
        fid.write(_hisdate)