time
提供: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:
Returns the current calendar time encoded 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.
目次 |
[編集] パラメータ
| time | - |
[編集] 値を返します
現在のカレンダー時間は、エラーの場合time_t、成功した場合に(time_t)(-1)オブジェクトとしてエンコードされます。引数がNULLでない場合、戻り値は、引数が指すオブジェクトに格納された値と等しくなります.
Original:
Current calendar time encoded as time_t object on success, (time_t)(-1) on error. If the argument is not NULL, the return value is equal to the value stored in the object pointed to by the argument.
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_tでカレンダ時刻のエンコーディングが指定されていませんが、ほとんどのシステムはPOSIX specificationに準拠しており、エポックからの経過秒数を保持する整数型の値を返す。 time_tは、32ビットの符号付き整数(多くの歴史的なインプリメンテーション)である実装は、2038年に失敗.
Original:
The encoding of calendar time in time_t is unspecified, but most systems conform to POSIX specification and return a value of integral type holding the number of seconds since the Epoch. Implementations in which time_t is a 32-bit signed integer (many historical implementations) fail in the year 2038.
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. (機能) | |
| 世界標準時として表現カレンダー時刻にエポックからの経過時間に変換します 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 time
| |