the pill

If I want to change the time that I take my pill. From 7pm to 12pm how would I do that safely without getting pregnant or messing up my hormones?