program.slot is zero-based from 0 through 7. setProgramDate() sets the ISO date and timezone explicitly; createIni() sets them automatically when missing.
Use config, controller1, and controller2 to add port and controller metadata before generating the INI document.