Parsing user time input in Java/GWT
问题 What is the best way to parse time that a user typed in a text field in GWT? Default time formats require users to enter time exactly as the time format for locale specifies it. I want to be more flexible as there are many different ways users can enter time. For example, entries like "8", "8p", "8pm", "8.15pm", "13:15", "1315", "13.15" should be valid. 回答1: I ended up with my own method that I want to share. This method returns time in milliseconds, which can be displayed using any data