MAINT: port numpy#13188 for np_datetime simplification
Bring numpy changes about emulating the behavior of python's divmod to
pandas.

- [x] closes #26500
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
