请问如何获取系统的“时区” 在win2k和xp、2003下读取系统当前的时区,请给出代码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 GetTimeZoneInformationThe GetTimeZoneInformation function retrieves the current time-zone parameters. These parameters control the translations between Coordinated Universal Time (UTC) and local time. TIME_ZONE_INFORMATION tzi; GetSystemTime(&tzi.StandardDate); GetTimeZoneInformation(&tzi); CString strStandName = tzi.StandardName; CString strDaylightName = tzi.DaylightName; CString strInfo; strInfo.Format(_T("%s:时区%d,%s:时差%d小时"),strStandName,tzi.Bias / -60,strDaylightName,tzi.DaylightBias / -60); AfxMessageBox(strInfo); 这个函数是winAPI的还是MFC的还是标准C的?在linux下也有同样的函数吗? GetTimeZoneInformation is WIN32 SDK function. windows程序是如何运行在内存中的 VC中如何在ComboBox控件中显示单位平方米 为何不能获取远程主机信息(20分求教) 再次提问有关mp3文件属性的问题 pDC怎么初始化呀 菜鸟的问题,如何把CString类型的数据转化成int类型的! 祝贺得分超过2000 当给ACCESS数据库添加Password后,相应的UserID是什么? 【置顶】 不显示删除回复显示所有回复显示星级回复显示得分回复 大家帮我看一下这小段奇怪的html代码 如何向CDocument或CWinApp类中发自定义的消息,及其响应方法! 下午6:00结帖,请进看!!! system函数疑问!有大侠可以解决么?
The GetTimeZoneInformation function retrieves the current time-zone parameters. These parameters control the translations between Coordinated Universal Time (UTC) and local time.
GetSystemTime(&tzi.StandardDate);
GetTimeZoneInformation(&tzi); CString strStandName = tzi.StandardName;
CString strDaylightName = tzi.DaylightName;
CString strInfo;
strInfo.Format(_T("%s:时区%d,%s:时差%d小时"),strStandName,tzi.Bias / -60,strDaylightName,tzi.DaylightBias / -60);
AfxMessageBox(strInfo);
在linux下也有同样的函数吗?