localtime
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <time.h>
|
||
将已给定的时间,因为划时代的time_t价值为日历时间,本地时间表示.
Original:
Converts given time since epoch as time_t value into calendar time, expressed in local time.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| time | - | 的指针一个
time_t对象转换Original: pointer to a time_t object to convertThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
指向一个静态内部tm对象的成功,或以其他方式NULL。该结构可gmtime,localtime,和ctime之间共享,并在每次调用时可能会被覆盖.
Original:
pointer to a static internal tm object on success, or NULL otherwise. The structure may be shared between gmtime, localtime, and ctime, and may be overwritten on each invocation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 注释
此功能可能不是线程安全的.
Original:
This function may not be thread-safe.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
POSIX规定,此功能设置errnoEOVERFLOW,如果它失败了,因为过大的说法是.
Original:
POSIX requires that this function sets errno to EOVERFLOW if it fails because the argument is too large.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 转换的时间,因为时代的日历时间为协调世界时表示 Original: converts time since epoch to calendar time expressed as Universal Coordinated Time The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| C++ documentation for localtime
| |