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.
[編集] 例
| This section is incomplete Reason: 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
| |