Enforce parameter types on getDuration()
Merge pull request #7 from genealogysystems/fix-getyear

Enforce parameter types on getDuration()