Boost logo

Boost :

Subject: Re: [boost] [date_time] quarters as new durations?
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2009-12-22 08:54:38

pete_at_[hidden] wrote:
> On Tue 22/12/09 13:27 , "Stewart, Robert" wrote:
> > Jeff Garland wrote:
> > >
> > > Month durations play some games to handle this problem (see
> > > docs for details) which quarters could adopt. But if you
> > > adopt the month rules then I don't thing you buy much more
> > > than simply writing
> > >
> > > const months quarters = months(3);
> > That's an excellent point. I don't think the fuzzy math approach is
> > appropriate for quarters because they have a precise definition: 1/4
> > of a year. Months are less precise, though 365 / 4 is not a whole
> > number, of course.
> Possibly opening a can of worms here, but a quarter in my
> line of work is invariably three months. If your mileage
> varies, then there could be a problem in providing a fully
> meaningful quarter duration type if people think it means
> different things.

Jeff's idea of months(3) is all you need, right?

Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Boost list run by bdawes at, gregod at, cpdaniel at, john at