Strict hours and days format.

Avoid 29h, 00d or 36d for example.
Add tests for invalid days and hours.
Merge pull request #29 from Hywan/util_date

Strict hours and days format