Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#2710 closed Bugs (fixed)

Missing/faulty documentation for date_period::expand

Reported by: anonymous Owned by: az_sw_dude
Milestone: Boost 1.38.0 Component: date_time
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

From http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/gregorian.html

date_period expand(days)

Add duration to both begin and end.

This is the same documentation as for date_period::shift, and it doesn't make any sense for expand.

Change History (3)

comment:1 by anonymous, 14 years ago

expand is documented further down like this:

date_period expand(days)


Subtract duration from begin and add duration to end.

date_period dp1(date(2002,Jan,4),
                date(2002,Jan,10));
dp1.expand(days(2));
// 2002-Jan-02/2002-Jan-12

The one I have a problem with is sorted under the "Mutators" header. It could probably have the same documentation.

comment:2 by Andrey Semashev, 13 years ago

Resolution: fixed
Status: newclosed

(In [53620]) Fixes #2710.

comment:3 by Andrey Semashev, 13 years ago

(In [53621]) Fixes #2710.

Note: See TracTickets for help on using tickets.