java - How to get hours and minutes from a String variable ? -


I have a string time <"13:10" . I was wondering how I would go best about getting hours and minutes and converting them into an integer i.e. int hours = 13, int minute = 10. I know that loop will not be the most effective way, Is anyone easy?

In this way, try through the method,

  string Tym = "13:10"; String [] time = time Source (":"); Int time = intangible.center (time [0] .tem ()); Int min = intiar.press (time [1] .tim ());    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -