Hi all,
I would like to use the time library to manage multiple times with different timezones in my embedded system.
I would like reproduce the IAR method: (www.iar.com/.../)
But with Keil MDK-ARM, I don't find the solution to manage the different timezones or switch the current rule of the timezone. I don't find any API. I don't if it's necessary to write weak functions...
Can you help me?
In advance, thank you.
the relation between geographic location, timezone, and DST rules is purely arbitrary.
And not only that: all of those elements can change at literally any time. Systems get moved to different geographical locations without noticing. Geographic locations decide to join different timezones. DST transition dates can change on little to no notice, and sometimes DST is just abolished. And that's before you consider what your system should do in case it just lost track of time itself (power-cut, anyone)?
E.g. there's a good chance the European Union at large will cease DST'ing in the foreseeable future, and who knows, maybe some of the more absurdly bollocksed country-to-TZ assignments will be rectified in the process, too. OTOH, there'll be politicians involved, so the "is like a box of chocolates" rule does apply...
It's a losing proposition to handle all that nonsense algorithmically on a limited embedded system.