Simple question: is year * 10000 + month * 100 + day always increasing? For example, today would is 20121011 and tomorrow is 20121012, which is 1 higher. Is this always the case? I’ve heard of some crazy stuff happening with dates and times before, but I’m no expert.
And just to preempt some responses – I know this is far from the best way to be handling dates/times. I can’t use proper libraries for the problem I’m working on without jumping through some serious hoops, and I’d prefer a simple solution.
Yes it must.
0<day<100and0<month<100always. Provided you use the full year, e.g. 2012 and not 12.And you should not compare times from different zones, then you’re fine.