OpenTSDB JavaScript utility to validate time values.