RE: [boost] Re: Boost version 1.30.0 released - date_time changehistory

2003-03-24 Thread Jeff Garland
 I read on the date_time change history about a new function for
 calculating ISO 8601 week number.
 
 I should note that this week number is rather useless without
 the corresponding year number. ISO 8601 week-based year is not
 always the same as the actual year. For example, 2nd January 1999
 is week 53 of year 1998 (not 1999!). 30th December 1997 is week
 01 of year 1998 (not 1997!). (examples taken from the C99 standard)
 
 My experience is that people often forget about this important fact
 and thus introduce bugs that may be not be catched until such situation
 really happens in life. To force library users consider this thing,
 I think that gregorian::date::week_number should return a pair: week
 number and week-based year number.

 Another option would be to just add a separate function for calculating
 week-based year number, however in my opinion it is less desirable
 because of reasons mentined above. In any case, providing week number
 without providing week-based year number is undesirable.

You make a good point that this can be quite confusing.  My thought
would be to add an iso_year() function and some documentation instead 
of changing the current function.

Jeff
___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


RE: [boost] Re: Boost version 1.30.0 released - date_time changehistory

2003-03-21 Thread Jeff Garland
 While we're on the subject of broken links, the link to date_time change 
 history doesn't work from the boost home page 
 http://www.boost.org/libs/date_time/doc/Changes.html

Really sorry about this.  I have checked it in and attached it for
those that want to patch 1.30.  Just add the attached into 
libs/date_time/doc.

JeffTitle: Boost Date-Time Library Documentation






  

Boost Date-Time Change History



Overall Index


Changes from Boost 1.29 to 1.30 (date_time 1.00 to 1.01)

  Notice:  The interface to the partial_date 
  class
  (see date_algorithms)
  was changed.  The order of construction parameters was changed
  which will cause some code to fail execution.  This change was
  made to facilitate more generic local time adjustment code.
  Thus instead of specifying partial_date pd(Dec,25) the code
  needs to be changed to partial_date pd(25, Dec);


TypeDescription

   Feature
   Added new experimental feature for Daylight Savings Time
   calculations.  This allows traits based specification of
   dst rules.

  

   Feature
   Added new interfaces to calculate julian day and modified 
   julian day to the gregorian date class.
  See boost::gregorian::date. 
  


   Feature
   Add new interface to calculate iso 8601 week number for
   a date. 
  See boost::gregorian::date. 
  

   Feature
   Add an iso 8601 time date-time format (eg: MMDDTHHHMMSS)
parsing function.
  See Class ptime for more information.
  

   Feature
   Added a length function to the period template so that both
   date_periods and time_periods will now support this function. 
  


   Bug Fix
   Split Jamfiles so that libs/date_time/build/Jamfile
   only builds library and /libs/date_time/libs/test/Jamfile
   which runs tests.
   


   Bug Fix
   Fixed many minor documentation issues.


   Bug Fix
   Removed the DATE_TIME_INLINE macro which was causing 
   link errors.  This macro is no longer needed in projects
   using the library.
  

   Bug Fix
   Added missing typedef for year_iterator to 
   gregorian_types.hpp


   Bug Fix
   Fixed problem with gregorian ostream operators
   that prevented the use of wide streams.
  


   Bug Fix
   Tighten error handling for dates so that
   date(2002, 2, 29) will throw a bad_day_of_month
   exception. 
   Previously the date would be incorrectly constructed.
   Reported by sourceforge bug: 628054 among others.
  






Last modified: Sun Feb  9 10:41:53 MST 2003

 by Jeff Garland  2000-2002




___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Re: [boost] Re: Boost version 1.30.0 released - date_time changehistory

2003-03-21 Thread David Abrahams
Jeff Garland [EMAIL PROTECTED] writes:

 While we're on the subject of broken links, the link to date_time change 
 history doesn't work from the boost home page 
 http://www.boost.org/libs/date_time/doc/Changes.html

 Really sorry about this.  I have checked it in and attached it for
 those that want to patch 1.30.  Just add the attached into 
 libs/date_time/doc.

I just patched the website.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost