BUG: catch overflow of nominator in datetime conversions

closes gh-4486