# Time 6, Exercise 2: why "none" ended up at midday (monastic hours as seasonal hours) def to_clock(minutes): return f"{int(minutes // 60):02d}:{int(round(minutes % 60)) % 60:02d}" def monastic_day(sunrise, sunset): """sunrise and sunset in minutes after midnight. Returns the day-hour length and the clock times of four offices. Simplification: terce, sext and none are taken as 3, 6 and 9 day-hours after sunrise.""" day_hour = (sunset - sunrise) / 12 return day_hour, { "prime": sunrise, "terce": sunrise + 3 * day_hour, "sext": sunrise + 6 * day_hour, "none": sunrise + 9 * day_hour, } # Round-number days: winter 08:40-15:40 (7 h of light), summer 04:30-21:30 (17 h of light) cases = { "winter": (8 * 60 + 40, 15 * 60 + 40), "summer": (4 * 60 + 30, 21 * 60 + 30), } for name, (rise, sset) in cases.items(): hour, times = monastic_day(rise, sset) print(name, "- day-hour is", round(hour, 1), "minutes") for office, t in times.items(): print(" ", office, to_clock(t)) # How far does 'none' move between winter and summer? w = monastic_day(*cases["winter"])[1]["none"] s = monastic_day(*cases["summer"])[1]["none"] print("none moves by", round(s - w), "minutes between winter and summer") # With a clock using equal hours, the same three offices would stay fixed on the dial, # e.g. none at 15:00 all year, because a bell is struck by the machine, not by the Sun. # Output when run: # winter - day-hour is 35.0 minutes # prime 08:40 # terce 10:25 # sext 12:10 # none 13:55 # summer - day-hour is 85.0 minutes # prime 04:30 # terce 08:45 # sext 13:00 # none 17:15 # none moves by 200 minutes between winter and summer # Reading the output: with seasonal hours, 'none' (the ninth hour) swings across more than # three hours of the clock face through the year. When equal hours took over, the office # was fixed in the early afternoon, and the word "none" slid to mean midday: it is the # source of our word "noon", which moved from mid-afternoon to 12:00 over the later Middle Ages.