forked from HowardHinnant/date
Add missing 'backward' file and correct output of negative values for time_of_day_storage.
This commit is contained in:
6
date.h
6
date.h
@@ -3105,7 +3105,7 @@ public:
|
|||||||
{
|
{
|
||||||
using namespace std;
|
using namespace std;
|
||||||
save_stream _(os);
|
save_stream _(os);
|
||||||
if (t.h_ < std::chrono::hours{0})
|
if (static_cast<precision>(t) < std::chrono::hours{0})
|
||||||
os << '-';
|
os << '-';
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
@@ -3171,7 +3171,7 @@ public:
|
|||||||
{
|
{
|
||||||
using namespace std;
|
using namespace std;
|
||||||
save_stream _(os);
|
save_stream _(os);
|
||||||
if (t.h_ < std::chrono::hours{0})
|
if (static_cast<precision>(t) < std::chrono::hours{0})
|
||||||
os << '-';
|
os << '-';
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
@@ -3246,7 +3246,7 @@ public:
|
|||||||
{
|
{
|
||||||
using namespace std;
|
using namespace std;
|
||||||
save_stream _(os);
|
save_stream _(os);
|
||||||
if (t.h_ < std::chrono::hours{0})
|
if (static_cast<precision>(t) < std::chrono::hours{0})
|
||||||
os << '-';
|
os << '-';
|
||||||
os.fill('0');
|
os.fill('0');
|
||||||
os.flags(std::ios::dec | std::ios::right);
|
os.flags(std::ios::dec | std::ios::right);
|
||||||
|
4
tz.cpp
4
tz.cpp
@@ -28,7 +28,7 @@ static std::string install{"/Users/howardhinnant/Downloads/tzdata2015e"};
|
|||||||
|
|
||||||
static const std::vector<const std::string> files =
|
static const std::vector<const std::string> files =
|
||||||
{
|
{
|
||||||
"africa", "antarctica", "asia", "australasia", "etcetera", "europe",
|
"africa", "antarctica", "asia", "australasia", "backward", "etcetera", "europe",
|
||||||
"pacificnew", "northamerica", "southamerica", "systemv", "leapseconds"
|
"pacificnew", "northamerica", "southamerica", "systemv", "leapseconds"
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1326,7 +1326,7 @@ operator<<(std::ostream& os, const Zone& z)
|
|||||||
for (auto const& s : z.zonelets_)
|
for (auto const& s : z.zonelets_)
|
||||||
{
|
{
|
||||||
os << indent;
|
os << indent;
|
||||||
if (s.gmtoff_ >= minutes{0})
|
if (s.gmtoff_ >= seconds{0})
|
||||||
os << ' ';
|
os << ' ';
|
||||||
os << make_time(s.gmtoff_) << " ";
|
os << make_time(s.gmtoff_) << " ";
|
||||||
os.width(15);
|
os.width(15);
|
||||||
|
Reference in New Issue
Block a user