- static char timeBuf[30];
- unsigned hh(GetHour());
-
- switch (Format) {
- case wx12h:
- hh -= 12;
- break;
- case wx24h:
- break;
- }
-
- switch (Precision) {
- case wxStdMinSec:
- sprintf(timeBuf,"%2d:%02d:%02d",hh,GetMinute(),GetSecond());
- break;
- case wxStdMin:
- sprintf(timeBuf,"%2d:%02d",hh,GetMinute());
- break;
- }
-
- if (Format == wx12h)
- if (GetHour() <= 12)
- strcat(timeBuf,_("am"));
- else
- strcat(timeBuf,_("pm"));
-
- return timeBuf;
+ static char timeBuf[30];
+ unsigned hh(GetHour());
+
+ switch (Format) {
+ case wx12h:
+ hh -= 12;
+ break;
+ case wx24h:
+ break;
+ }
+
+ switch (Precision) {
+ case wxStdMinSec:
+ sprintf(timeBuf,"%2d:%02d:%02d",hh,GetMinute(),GetSecond());
+ break;
+ case wxStdMin:
+ sprintf(timeBuf,"%2d:%02d",hh,GetMinute());
+ break;
+ }
+
+ if (Format == wx12h)
+ if (GetHour() <= 12)
+ strcat(timeBuf,_("am"));
+ else
+ strcat(timeBuf,_("pm"));
+
+ return timeBuf;