#include "wx/setup.h"
-#if USE_TIMEDATE
+#if wxUSE_TIMEDATE
#include "wx/time.h"
#include "wx/date.h"
#include "wx/utils.h"
+#include <wx/intl.h>
-#if USE_IOSTREAMH
+#if wxUSE_IOSTREAMH
#include <iostream.h>
+#include <iomanip.h>
#else
#include <iostream>
+#include <iomanip>
+# ifdef _MSC_VER
+ using namespace std;
+# endif
#endif
-#include <iomanip.h>
#include <string.h>
#if !USE_SHARED_LIBRARY
/*
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
if (Format == wx12h)
if (GetHour() <= 12)
- strcat(timeBuf,"am");
+ strcat(timeBuf,_("am"));
else
- strcat(timeBuf,"pm");
+ strcat(timeBuf,_("pm"));
return timeBuf;
}
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)