We can now implement that function:
我们现在可以实现该功能:
def zellergregorian(d): """ Runs the Zeller algorithm on the given date and returns the day index 0 to 6 for Saturday to Friday. """ q = d.day m = d.month Y = d.year # adjust month to run from 3 to 14 from March to February if m