from pathlib import Path
import sys,time,datetime
run=Path('/tmp/lead-29548-r1/evidence-capture-2')/sys.argv[1]
target=datetime.datetime.fromisoformat('2026-11-02T21:00:00+00:00').timestamp()+float(sys.argv[2])
(run/'clock.rc').write_text(f'{target-time.time():+.6f}s')
print('Advancing wall clock reset to '+datetime.datetime.fromtimestamp(target,datetime.timezone.utc).isoformat())
