Parse 1d as 1 day instead of as a double

Fixes #117