To replicate this in Python: (mydatetime.isoweekday() % 7) + 1
Generated by nedoc v0.9 at 2020-12-29 14:04