On 10/12/2010 08:26 AM, Michel Fortin wrote:
A date can be expressed using different calendars, but can also be
stored as an interval since a reference date (like the UNIX epoch).
With your main storage format calendar-agnostic you can easily
convert back and forth to different calendars-specific formats.

Interesting point. I wonder what Boost does.

Also, if you're dealing only with time -- like calculating the time
elapsed between two time points -- then you don't need any calendar
unless you plan to display that elapsed time in months or years.

And of course I never meant that Phobos should provide more calendars
than gregorian. That said, it'd be good if it its gregorian
implementation could be used as a base to implement other calendars.

Speaking of all this, Jonathan, what's your plan right now? There's been some points raised here and there by people, you replied "this is a good suggestion but there are cons as well", so I'm not sure whether you plan to keep the submission as is or operate changes to it. In the latter case, I'm unclear on what changes you have decided to make.

One other thing - it might be useful to take this entire review process to digitalmars.D. Is everyone comfortable with that?


Andrei
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to