#30447 added a __format__ method to the datetime module