Пространства имён
Варианты
Действия

mktime

Материал из cppreference.com
< c | chrono

 
 
Дата и время коммунальные услуги
Функции
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Время манипуляции
Original:
Time manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
difftime
time
clock
Формат преобразования
Original:
Format conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
asctime
ctime
strftime
wcsftime
gmtime
localtime
mktime
Константы
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CLOCKS_PER_SEC
Типы
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
tm
time_t
clock_t
 
Заголовочный файл <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.
В случае успеха, пересчитывает и обновляет все поля в 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.

Содержание

[править] Параметры

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.

[править] Пример

[править] См. также

преобразует времен эпохи к календарному времени выражается по местному времени
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.

(функция) [edit]