Parsing time strings in HH:MM format

Hi,

What's the correct way to tell a StreamTokenizer to treat a time string in hh:mm format as an ordinary word?

This is parsing the string "15:50" as ":50" using a default StreamTokenizer object.tokenizer.wordChars('\u0030','\u0039');

tokenizer.wordChars(':',':');

Cheers!

[418 byte] By [appoooha] at [2007-10-1 1:48:05]
# 1
What are your whitespaceChars set to?Grant
ggaineya at 2007-7-8 8:10:12 > top of Java-index,Security,Event Handling...