However, you have to be careful, because A and B also have a time that affects the comparison. The correctness of the comparison depends on where A, B and C come from, or how they are constructed.
Right. To illustrate this in concrete terms, the mapping from a set of Gregorian date components (like 1986/04/05) to an absolute point in time depends on the time zone, so you might find that C falls between A and B for some users but not others.
In my experience virtually every easily-stated date and time problem has an obvious answer that’s wrong (for a fun time, read Your Calendrical Fallacy Is…), and finding the right answer requires you to really nail down the specification of the problem.
stcocoa, if you can explain more about the context of this issue we should be able to offer you better advice.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"