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.
My approach just avoids having all that logic in the embedded system.
All that logic??? You one of those developers who considers code is better when it's got lots of lines??? It doesn't require much code and having it there would ensure that changeover occurs even if there were no communication link at the particular time.
But hey, let's just let the OP choose whether they want crude or reliable.
Obviously not - as my whole point is to reduce the amount of stuff in the embedded device!
"Simpler" usually has a better chance of being "reliable".
In this situation, you might end up being at the mercy of communications and the reliability of that at a critical time. So your simpler could easily end up with unacceptable failure and therefore possibly not considered reliable.
Pre 2001, before we included this little code into our embedded devices we understandably got complaints when time changeover either didn't occur or occurred late. Not good Pesky TCP and RS-485 always chose the best times to hiccup. So we always now go for the RELIABLE and ACCEPTABLE OVERHEAD approach. Written once, ported with no trouble to various platforms and lasted 17 years (so far).