#include "wx/ioswrap.h"
-#if wxUSE_IOSTREAMH
+#if wxUSE_IOSTREAMH && wxUSE_STD_IOSTREAM
#include <iomanip.h>
#else
#include <iomanip>
/*
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
}
#ifndef __SALFORDC__
-wxTime::operator char *(void)
+wxTime::operator wxChar *(void)
{
return FormatTime();
}
wxTime::Precision = lPrecision;
}
-char *wxTime::FormatTime() const {
- static char timeBuf[30];
+wxChar *wxTime::FormatTime() const {
+ static wxChar timeBuf[30];
unsigned hh(GetHour());
switch (Format) {
switch (Precision) {
case wxStdMinSec:
- sprintf(timeBuf,"%2d:%02d:%02d",hh,GetMinute(),GetSecond());
+ wxSprintf(timeBuf,T("%2d:%02d:%02d"),hh,GetMinute(),GetSecond());
break;
case wxStdMin:
- sprintf(timeBuf,"%2d:%02d",hh,GetMinute());
+ wxSprintf(timeBuf,T("%2d:%02d"),hh,GetMinute());
break;
}
if (Format == wx12h)
if (GetHour() <= 12)
- strcat(timeBuf,_("am"));
+ wxStrcat(timeBuf,_("am"));
else
- strcat(timeBuf,_("pm"));
+ wxStrcat(timeBuf,_("pm"));
return timeBuf;
}