I am having some problems at conversing formats.
I have a function(getFecha()) (non created by me but I have to use it) which returns timestamp in char*. This is the format:
year, month, date, day, hour, minute, second
And I want to upload seconds.
I tried something like this:
char* fecha = RTC.getFecha();
fecha = '9'; //Seconds (units)
This works fine. But I want to operate with seconds, in order to upload exactly what I need. If I try: fecha = 9; It fails and fecha = (char) 9; also fails.
Is there anything more before admit that number? If I print fecha (complete sentence) after update number, is fails. It shows this:
So writes a "." I understand...