Strings and RTC questions

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Strings and RTC questions

Post by YahooArchive » Wed Jan 30, 2013 6:24 am

>from the help line
>I am using this line of code to save the data in a comma delimented string
array. READHOUR being an incremented variable incremented each hour.

>TIMESTAMP(READHOUR) = MONTH(0) AND "," AND DAY(0) AND "," AND HOUR(-1) AND ","
AND MIN AND "," AND MAX

>Is there any way to determine when the memory will be full? This way I can roll
it over and overwrite from the begining data.

LEN would tell you the length of the string. In your example though, this will
not work in ARMbasic, as it does not support arrays of strings. Strings are
limited to 255 characters, and while you can have byte arrays larger than that,
you can not do string operations on them.

>Also is there any way to handle UTC offset (time zones) and daylight savings
time in the RTC?

There is no hardware support for that, it would require software to do the
conversions.



Post Reply