${Time.Time12} displays 24hour time still
Posted: Tue Apr 13, 2004 12:45 am
The topic says it all.. Thanks
Need to talk about MacroQuest to other MacroQuest users?
https://mq64.org/phpBB3/
Code: Select all
integer%12Code: Select all
case Time12:
{
unsigned long Hour=pTime->tm_hour%12;
if (!Hour)
Hour=12;
sprintf(DataTypeTemp,"%02d:%02d:%02d",pTime->tm_hour,pTime->tm_min, pTime->tm_sec);
Dest.Ptr=&DataTypeTemp[0],
Dest.Type=pStringType;
}
return true;
Code: Select all
case Time12:
{
unsigned long Hour=pTime->tm_hour%12;
if (!Hour)
Hour=12;
sprintf(DataTypeTemp,"%02d:%02d:%02d",Hour,pTime->tm_min, pTime->tm_sec);
Dest.Ptr=&DataTypeTemp[0],
Dest.Type=pStringType;
}
return true;