时区的标准名称。 [英] Timezone's standard name.

查看:102
本文介绍了时区的标准名称。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在您对gettimezoneinformation的调用成功了,如何从数字形式获取标准名称(现在以数字形式写入,一个数字为一个字母。)到字符文本。这个问题可能听起来很愚蠢,但我想知道它是如何完成的。好?。谢谢。



我尝试了什么:



一切皆有可能。使用strcpy,strncpy和printf(%s等等。请有人,请告诉我它是多么容易完成。我使用的是C,而不是C ++。

Now that your call to gettimezoneinformation is successful, how can get the standard name(now written in the form of numbers, one number for one letter. ) from numbers form into character text. This question may sound silly, but I woud like to know how it is done. Ok?. Thanks.

What I have tried:

Everything possible. Using strcpy, strncpy, and printf( %s and so forth. Could someone, please, show me how easy it can be done. I'm using "C", not C++.

推荐答案

名称在调用提供的结构中返回:请参阅 TIME_ZONE_INFORMATION结构(Windows) [ ^ ]。
The names are returned in the structure provided by the call: see TIME_ZONE_INFORMATION structure (Windows)[^].


这篇关于时区的标准名称。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆