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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -