w2utils.isTime

Returns true if str is a valid time.
isTime(str)
str string, string to validate
Both formats 10:20pm and 22:20 are supported

User Comments

comments powered by Disqus