gcbenison
gcbenison

Reputation: 11963

boost::gregorian::date_period representing all time

Is there a way to build such an object? This works, in practice:

date_period(date(1,Jan,1), pos_infin)

assuming you can assume that year 1 is effectively negative infinity. But it seems like there must be a way to express an actually infinite time period.

Upvotes: 0

Views: 51

Answers (1)

gcbenison
gcbenison

Reputation: 11963

Oh, you can do this:

date_period(date(neg_infin), pos_infin)

Upvotes: 1

Related Questions