X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..6f34921d9369a31de14e4b07e4824e2d701710f0:/src/common/time.cpp diff --git a/src/common/time.cpp b/src/common/time.cpp index 852de83041..01eed9a495 100644 --- a/src/common/time.cpp +++ b/src/common/time.cpp @@ -32,6 +32,7 @@ seconds since January 1, 1901, GMT. #include "wx/time.h" #include "wx/date.h" #include "wx/utils.h" +#include #if USE_IOSTREAMH #include @@ -99,7 +100,7 @@ wxTime::wxTime() wxTimeInitialized = TRUE; } sec = wxGetCurrentTime(); - sec += 2177452800L; /* seconds from 1/1/01 to 1/1/70 */ + sec += 2177452800UL; /* seconds from 1/1/01 to 1/1/70 */ } wxTime::wxTime(hourTy h, minuteTy m, secondTy s, bool dst) @@ -141,7 +142,7 @@ wxTime::wxTime(const wxDate& date, hourTy h, minuteTy m, secondTy s, bool dst) /* if (IsDST()) setError(NIHCL_BADTIME,DEFAULT, date.dayOfMonth(),date.nameOfMonth(),date.year(), - h,m,s,(dst?"DST":"")); + h,m,s,(dst?_("DST"):"")); */ } sec += TIME_ZONE; // adjust to GMT @@ -313,9 +314,9 @@ char *wxTime::FormatTime() const { if (Format == wx12h) if (GetHour() <= 12) - strcat(timeBuf,"am"); + strcat(timeBuf,_("am")); else - strcat(timeBuf,"pm"); + strcat(timeBuf,_("pm")); return timeBuf; } @@ -348,8 +349,8 @@ void wxTime::printOn(ostream& strm) const strm << ' ' << ((hh <= 12) ? hh : hh-12) << ':' << setfill('0') << setw(2) << GetMinute() << ':' << setfill('0') << setw(2) << GetSecond() << ' '; - if (hh < 12) strm << "am"; - else strm << "pm"; + if (hh < 12) strm << _("am"); + else strm << _("pm"); } wxTime::wxTime(OIOin& strm)