[phobos] datetime review

Michel Fortin michel.fortin at michelf.com
Sun Oct 10 09:20:31 PDT 2010


Le 2010-10-10 à 11:16, Jonathan M Davis a écrit :

> Part of me would definitely like to keep MonthDuration, HNSecDuration, and 
> JointDuration as is, but the more I think about it, the more it looks like it 
> wouldn't be all that bad to have to work around their lack, and while using the 
> durations as they are really isn't all that hard, it's going to confuse a fair 
> number of people when they first encounter them. So, I'm beginning to lean 
> towards just simplifying it to HNSecDuration (though I'd rename it as Duration 
> in that case). It's annoying in some cases, but it'll definitely cut down on the 
> learning curve for using the library.

Another option I might propose is to get rid of MonthDuration by using JointDuration instead and rename it to CalendarDuration.

But in my opinion, calendar things like this should simply belong to a separate module. This would simplify the API for those who don't need to deal with the complexities of the calendar.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the phobos mailing list