Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
User Journal

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.

User Journal

Journal Journal: Subject

Journal? I have no journal.

Slashdot Top Deals

Real Programs don't use shared text. Otherwise, how can they use functions for scratch space after they are finished calling them?

Working...