Refactoring rewards : It's now possible to compare datetime