
Journal Journal: If I were designing a DateTime object.... 10
Yesterday, we were discussing date/time handling at work, and came up with some thoughts. This entry exists to discuss those thoughts and possibly come up with a coherent proposal that can be used by developers and/or submitted to a standards organization.
The basic idea is this: DateTimes are worthy of the same kind of handling as IEEE floating-point numbers. They should have a defined range and precision, which should be well beyond expected useful values, and should include pre-defined, sensible constants such as "Not a Date," "Ever" (before everything), and "Never" (after everything). They should have standard mathematical operations (this may require a separate "Duration" type to go with what is essentially an "Instant" type) and behave appropriately. There are certainly aspects to this idea I have not considered. I am very interested to see others' comments on this.