So how did Roman emperors get months named after them and what where they before, similar question with Nordic mythological figures on our days of the week and lastly how did this all amalgamate into the system we have today?
Weeks, Weekdays, and Weekends in the FAQ may be of interest, along with various other subsections on that page