Taking time from SIM900,not date,only time

Hi guys,can anyone help me with SIM900 as RTC,command for SIM900 to display time is: AT+CCLK?
and it returns: +CCLK: "17/05/13,21:22:22+08"
So,I would like my arduino to look only at 21:22,what is hours and minutes,not date and other things.How can this be done?

If you want it in a string, use strlcpy().

The process is called parsing. How you do it depends on how you are storing the data. In a string? Use strtok().

In a String? Use indexOf() and substring().

Not at all? Forget it.

If the target string has a fixed offset in the source string, you can just copy it to a new string by specifying the offset. This simplifies parsing. As mentioned above, your choices of handling it depend on how you acquire and store it.

I would like it to take time once and continue with time counting,and in cuple of days to take fresh time agin,so it is really accurate

I would like it to take time once and continue with time counting,and in cuple of days to take fresh time agin,so it is really accurate

Permission granted.

Can you give me any advice,Im really new to this,I would like microcontroller to send message with sensor reading every day at 9PM,for that it needs to know the time

Cross-posted in Microcontrollers.

DO NOT CROSS-POST, CROSS-POSTING WASTES TIME.

Can you give me any advice

Yes. Go back and re-read reply #2. Address the issues raised there.

Sorry but I didn't know how to delete it from "microcontrollers"

Nikola19992:
Sorry but I didn’t know how to delete it from “microcontrollers”

Did you ask anyone?