Enter what type of time? Is it user defined (does the user enter it)? Do you just want a method to enter a time that exists, such that it rejects something like 25:61:61 ?

In other words, I don't understand what you want.