Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function isTime(time) {
return time.match(/(^([0-9]|[0-1][0-9]|[2][0-3]):([0-5][0-9])$)|(^([0-9]|[1][0-9]|[2][0-3])$)/);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment