mktime
来自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对象,而忽略
time->tm_wday和time->yday的值。其他组件time的值并不限于其通常范围。负值的time->tm_isdst导致mktime如果夏令时在试图确定.Original:
Converts local calendar time to a time since epoch as a time_t object, ignoring the values of
time->tm_wday and time->yday. The values of other components of time are not restricted to their usual ranges. A negative value of time->tm_isdst causes mktime to attempt to determine if Daylight Saving Time was in effect.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,以满足他们适当的范围内.Original:
If successful, recalculates and updates all fields in
time to fit their proper ranges.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 | - | 指针指定本地日历的时间来转换到tm对象
Original: pointer to a tm object specifying local calendar time to convert The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
成功或time_t-1不能表示为一个
time对象为time_t对象,因为时代的时间.Original:
time since epoch as a time_t object on success or -1 if
time cannot be represented as a time_t object.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 local 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 mktime
| |