[WIP] first draft of a fix for #5448

first draft of a fix for #5448. Only method stubs so far.

- [x] create test cases
- [x] implement DateTime class to provide needed information.