summaryrefslogtreecommitdiff
path: root/libs/date_time
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /libs/date_time
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/date_time')
-rw-r--r--libs/date_time/meta/libraries.json15
-rw-r--r--libs/date_time/test/posix_time/testtime.cpp5
-rw-r--r--libs/date_time/xmldoc/buildinfo.xml2
-rw-r--r--libs/date_time/xmldoc/date_period.xml2
-rw-r--r--libs/date_time/xmldoc/ptime_class.xml4
5 files changed, 24 insertions, 4 deletions
diff --git a/libs/date_time/meta/libraries.json b/libs/date_time/meta/libraries.json
new file mode 100644
index 000000000..d3ffa568d
--- /dev/null
+++ b/libs/date_time/meta/libraries.json
@@ -0,0 +1,15 @@
+{
+ "key": "date_time",
+ "name": "Date Time",
+ "authors": [
+ "Jeff Garland"
+ ],
+ "description": "A set of date-time libraries based on generic programming concepts.",
+ "category": [
+ "Domain",
+ "System"
+ ],
+ "maintainers": [
+ "Jeff Garland <jeff -at- crystalclearsoftware.com>"
+ ]
+}
diff --git a/libs/date_time/test/posix_time/testtime.cpp b/libs/date_time/test/posix_time/testtime.cpp
index 054377c0c..c14dceddc 100644
--- a/libs/date_time/test/posix_time/testtime.cpp
+++ b/libs/date_time/test/posix_time/testtime.cpp
@@ -258,26 +258,31 @@ main()
//time_t conversions:
t18 = from_time_t(0); //1970-1-1 0:0:0
check("time_t conversion of 0", t18 == ptime(date(1970,1,1)));
+ check("time_t conversion from 0", to_time_t(t18) == 0);
std::time_t tt(500000000);
t18 = from_time_t(tt); //1985-11-5 0:53:20
check("time_t conversion of 500000000",
t18 == ptime(date(1985,11,5), time_duration(0,53,20)));
+ check("time_t conversion from 500000000", to_time_t(t18) == tt);
std::time_t tt1(1060483634);
t18 = from_time_t(tt1); //2003-08-10 2:47:14
check("time_t conversion of 1060483634",
t18 == ptime(date(2003,8,10), time_duration(2,47,14)));
+ check("time_t conversion from 1060483634", to_time_t(t18) == tt1);
std::time_t tt2(1760483634);
t18 = from_time_t(tt2); //2025-10-14 23:13:54
check("time_t conversion of 1760483634",
t18 == ptime(date(2025,10,14), time_duration(23,13,54)));
+ check("time_t conversion from 1760483634", to_time_t(t18) == tt2);
std::time_t tt3(1960483634);
t18 = from_time_t(tt3); //2032-2-15 18:47:14
check("time_t conversion of 1960483634",
t18 == ptime(date(2032,2,15), time_duration(18,47,14)));
+ check("time_t conversion from 1960483634", to_time_t(t18) == tt3);
special_values_tests();
diff --git a/libs/date_time/xmldoc/buildinfo.xml b/libs/date_time/xmldoc/buildinfo.xml
index e77c6d7c2..9f6ad2033 100644
--- a/libs/date_time/xmldoc/buildinfo.xml
+++ b/libs/date_time/xmldoc/buildinfo.xml
@@ -143,7 +143,7 @@
<listitem><ulink url="boost:/libs/tokenizer/index.html">boost.tokenizer</ulink> </listitem>
<listitem><ulink url="boost:/libs/integer/doc/html/boost_integer/cstdint.html">boost.integer(cstdint)</ulink> </listitem>
<listitem><ulink url="boost:/libs/utility/operators.htm">boost.operators</ulink> </listitem>
- <listitem><ulink url="boost:/libs/conversion/lexical_cast.htm">boost.lexical_cast </ulink> </listitem>
+ <listitem><ulink url="boost:/libs/lexical_cast/index.html">boost.lexical_cast </ulink> </listitem>
<listitem><ulink url="boost:/libs/smart_ptr/smart_ptr.htm">boost.smart_ptr (local time only)</ulink> </listitem>
<listitem><ulink url="boost:/libs/algorithm/string/index.html">boost::string_algorithms </ulink> </listitem>
<listitem><ulink url="boost:/libs/serialization/index.html">boost::serialize (serialization code only) </ulink> </listitem>
diff --git a/libs/date_time/xmldoc/date_period.xml b/libs/date_time/xmldoc/date_period.xml
index 64c363ec5..e720e02b4 100644
--- a/libs/date_time/xmldoc/date_period.xml
+++ b/libs/date_time/xmldoc/date_period.xml
@@ -196,7 +196,7 @@ dp.length() --> 2</screen>
<row>
<entry><screen>date_period dp(date(2002,Jan,10),
date(2002,Jan,1));
-dp.begin() --> true</screen>
+dp.is_null() --> true</screen>
</entry>
</row>
diff --git a/libs/date_time/xmldoc/ptime_class.xml b/libs/date_time/xmldoc/ptime_class.xml
index 244216bba..806e71570 100644
--- a/libs/date_time/xmldoc/ptime_class.xml
+++ b/libs/date_time/xmldoc/ptime_class.xml
@@ -499,8 +499,8 @@ tm pt_tm = to_tm(pt);
</row>
<row>
- <entry valign="top" morerows="1"><screen>date date_from_tm(tm datetm)</screen></entry>
- <entry>A function for converting a <code>tm</code> struct to a <code>date</code> object. The fields: <code>tm_wday </code>, <code>tm_yday </code>, and <code>tm_isdst</code> are ignored.</entry>
+ <entry valign="top" morerows="1"><screen>ptime ptime_from_tm(tm timetm)</screen></entry>
+ <entry>A function for converting a <code>tm</code> struct to a <code>ptime</code> object. The fields: <code>tm_wday </code>, <code>tm_yday </code>, and <code>tm_isdst</code> are ignored.</entry>
</row>
<row>
<entry><screen>tm pt_tm;