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. |
| Заголовочный файл <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.
[править] Notes
Кодирование календарного времени в 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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| преобразует времен эпохи к календарному времени выражается по местному времени 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++ документация для time
| |