(bug 54333) Validate time precision.

This validates the precision parameter for time values.

Change-Id: I78d0dd46f478dffc9a879b8c645c7468b00949fd
Merge "(bug 54333) Validate time precision."