Make time units case insensitive

this fixes #609