mirror of
https://github.com/boostorg/date_time.git
synced 2026-01-28 07:02:19 +00:00
246 lines
9.8 KiB
HTML
246 lines
9.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>Boost Date-Time Library Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
|
|
<body>
|
|
<a href="../../../index.htm">
|
|
<img align="left" src="../../../c++boost.gif" alt="C++ Boost">
|
|
</a>
|
|
|
|
<h1>Boost Date-Time Change History</h1>
|
|
<p>
|
|
<p> <p>
|
|
<hr>
|
|
<a href="index.html">Overall Index</a>
|
|
<p>
|
|
<h3>Changes from Boost 1.30 to 1.31 (date_time 1.01 to 1.02)</h3>
|
|
<p class="bold">
|
|
<table>
|
|
<tr class="row_title"><td>Type</td><td>Description</td></tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Time_duration from_string is now correctly constructed
|
|
from a negative value. (ie "-0:39:00.000")
|
|
Code provided by Bart Garst.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Fixed many MSVC compiler warnings when compiled with
|
|
warning level 4.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Fixed many GCC compiler warnings when compiled with
|
|
-Wshadow.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added prefix decrement operator (--) for date and time iterators.
|
|
See <a href="time_iterators.html">Time Iterators</a>
|
|
and <a href="date_iterators.html">Date Iterators</a>
|
|
for more details.
|
|
Code provided by Bart Garst.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Special values functionality (eg: infinities, not_a_date_time)
|
|
added for date_duration, time_duration and time classes.
|
|
Code provided by Bart Garst.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Fixed time_duration_traits calculation bug which was
|
|
causing time duration to be limited to 32bit range even
|
|
when 64 bits were available. Thanks to Joel de Guzman
|
|
for tracking this down.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Provided additional operators for duration types (eg:
|
|
date_duration, time_duration). This includes divideable
|
|
by integer and fixes to allow +=, -= operators. Thanks to
|
|
Bart Garst for writing this code. Also, the documentation
|
|
of <a href="Calculations.html">Calculations</a> has been
|
|
improved.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Added typedefs to boost::gregorian gregorian_types.hpp various
|
|
date_generator function classes.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added from_time_t function to convert time_t to a ptime. See
|
|
<a href="class_ptime.html#constructfromtimet">from_time_t</a>
|
|
from more.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added a span function for combining periods. See
|
|
<a href="class_date_period.html">date period</a> and
|
|
<a href="class_time_period.html">time period</a> docs.
|
|
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added a function to time_duration to get the total number
|
|
of seconds in a duration truncating any fractional seconds.
|
|
In addition, other resolutions were added to allow for
|
|
easy conversions. For example<br>
|
|
seconds(1).total_milliseconds() == 1000<br>
|
|
seconds(1).total_microseconds() == 1000000<br>
|
|
hours(1).total_milliseconds() == 3600*1000 //3600 sec/hour<br>
|
|
seconds(1).total_nanoseconds() == 1000000000<br>
|
|
See <a href="class_time_duration.html">time duration</a> for more.
|
|
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added output streaming operators for the
|
|
<a href="date_algorithms.html">date generator</a>
|
|
classes - partial_date, first_kday_after, first_kday_before, etc. Thanks to Bart Garst for this work.
|
|
</td>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added unary- operators for durations for reversing the sign
|
|
of a time duration. For example: <br>
|
|
time_duration td(5,0,0); //5 hours<br>
|
|
td = -td; //-5 hours<br>
|
|
Thanks to Bart Garst for this work.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added support for parsing strings with 'month names'.
|
|
Thus creating a date object from string now accepts
|
|
multiple formats ("2003-10-31","2003-Oct-31", and
|
|
"2003-October-31").
|
|
Thus, date d = from_simple_string("2003-Feb-27") is now
|
|
allowed. A bad month name string
|
|
(from_simple_string("2003-SomeBogusMonthName-27")) will
|
|
cause a bad_month exception. In addition, there are
|
|
new convenience functions that handle different orderings of the
|
|
year, month, and day. The from_us_date and from_uk_date
|
|
<a href="class_date.html#constructfromstring">(reference)</a>
|
|
provide parsing for the order month-day-year and day-month-year respectively.
|
|
On most compilers the month string compare is case insensitive.
|
|
Thanks to Bart Garst for this work.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Various documentation fixes. Thanks to Bart Garst for
|
|
updates.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<h3>Changes from Boost 1.29 to 1.30 (date_time 1.00 to 1.01)</h3>
|
|
<p class="bold">
|
|
Notice: The interface to the <font class="el">partial_date</font>
|
|
class
|
|
<a href="date_algorithms.html">(see date_algorithms)</a>
|
|
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);
|
|
<p>
|
|
<table>
|
|
<tr class="row_title"><td>Type</td><td>Description</td></tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Added new experimental feature for Daylight Savings Time
|
|
calculations. This allows traits based specification of
|
|
dst rules.
|
|
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added new interfaces to calculate julian day and modified
|
|
julian day to the gregorian date class.
|
|
See <a href="class_date.html#accessors">boost::gregorian::date</a>.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Add new interface to calculate iso 8601 week number for
|
|
a date.
|
|
See <a href="class_date.html#accessors">boost::gregorian::date</a>.
|
|
</td>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Add an iso 8601 time date-time format (eg: YYYYMMDDTHHHMMSS)
|
|
parsing function.
|
|
See <a href="class_ptime.html#constructfromstring">Class ptime</a> for more information.
|
|
</td>
|
|
<tr class="content">
|
|
<td class="nowrap">Feature</td>
|
|
<td>Added a length function to the period template so that both
|
|
date_periods and time_periods will now support this function.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Split Jamfiles so that libs/date_time/build/Jamfile
|
|
only builds library and /libs/date_time/libs/test/Jamfile
|
|
which runs tests.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Fixed many minor documentation issues.</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Removed the DATE_TIME_INLINE macro which was causing
|
|
link errors. This macro is no longer needed in projects
|
|
using the library.
|
|
</td>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Added missing typedef for year_iterator to
|
|
gregorian_types.hpp</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>Fixed problem with gregorian ostream operators
|
|
that prevented the use of wide streams.
|
|
</td>
|
|
</tr>
|
|
<tr class="content">
|
|
<td class="nowrap">Bug Fix</td>
|
|
<td>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.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr>
|
|
<address><small>
|
|
<!-- hhmts start -->
|
|
Last modified: Sun Feb 1 09:21:26 MST 2004
|
|
<!-- hhmts end -->
|
|
by <a href="mailto:jeff@crystalclearsoftware.com">Jeff Garland</a> © 2000-2004
|
|
</small></address>
|
|
</body>
|
|
</html>
|
|
|
|
|