I have an RTC hooked up to my Arduino, which provides the year in 4 digits (ie 2013). To fit everything I need onto my Nokia 5110 display, I need to strip it down to an int that is only two digits long (ie 13).
I don't know if it's the extreme heatwave were getting in the South of England thats frying my brain, but surely this can be done easily? Perhaps I'm not thinking straight!
2000 will get you an instant result (1 run).
100 would take 20 runs, if that is the way it actually works (i don't know).
2000 will last the next 87 years.
100 will last forever.
Last time I looked, the RTC I was using at the time returned neither "int" nor C string, but BCD digits.
The library attached to it returned an "int" though.
But then, it has been a while.