Use U8String/U16String/WString instead of UTF8String/UTF16String/WideString

This commit is contained in:
2024-12-24 22:41:52 +08:00
parent 1727440211
commit ddf1bb4d0f
3 changed files with 14 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ int main(int,char **)
ToDateTime(d,t,cur_time);
UTF8String str=UTF8String::floatOf(cur_time,TIME_OUT_FRAC);
U8String str=U8String::floatOf(cur_time,TIME_OUT_FRAC);
cout<<"cur_time="<<str.c_str()<<endl;
cout<<"\tyear="<<d.GetYear()<<" month="<<d.GetMonth()<<" day="<<d.GetDay()<<endl;
@@ -26,7 +26,7 @@ int main(int,char **)
const double new_time=FromDateTime(d,t);
str=UTF8String::floatOf(new_time,TIME_OUT_FRAC);
str=U8String::floatOf(new_time,TIME_OUT_FRAC);
cout<<"new_time="<<str.c_str()<<endl;
cout<<"TimeZone:"<<GetTimeZone()<<endl;