Time policies based on access codes