求 C/C++ 设立本机时区代码

求 C/C++ 设置本机时区代码
如题,搞了半天没搞出来  求牛人给个代码啊  

能运行的  !!

3Q!!

------解决方案--------------------

tm  *tlocalTime = localtime(&time(NULL));
cout<<tlocalTime ->tm_hour<<endl;
cout<<tlocalTime ->tm_min<<endl;
cout<<tlocalTime ->tm_sec<<endl;

是这样的不
------解决方案--------------------
引用:

tm  *tlocalTime = localtime(&time(NULL));
cout<<tlocalTime ->tm_hour<<endl;
cout<<tlocalTime ->tm_min<<endl;
cout<<tlocalTime ->tm_sec<<endl;

是这样的不


他要的是直接修改系统时间的吧
http://c.chinaitlab.com/cc/ccjq/200909/794115.html
------解决方案--------------------
_set_locale吧,大概长这样
------解决方案--------------------
这个没去了解过..可以查查linux的这种命令.
然后去看看是否有源代码.