datetime import works with float as well as with int