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

gmtime

Материал из 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>
tm* gmtime( const time_t* time );
Преобразует заданное время с начала эпохи, как time_t значение в календарное время, выраженных в универсальное координированное время (UTC).
Original:
Converts given time since epoch as time_t value into calendar time, expressed in Coordinated Universal Time (UTC).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Содержание

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

time -
Указатель на time_t объект для преобразования
Original:
pointer to a time_t object to convert
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Возвращаемое значение

Указатель на статический внутренний объект tm на успех, или NULL иначе. Структуры могут совместно gmtime, localtime, и ctime и могут быть перезаписаны при каждом вызове.
Original:
pointer to a static internal tm object on success, or NULL otherwise. The structure may shared between gmtime, localtime, and ctime and may be overwritten on each invocation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Notes

Эта функция не может быть поточно-.
Original:
This function may not be thread-safe.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
POSIX требует, чтобы эта функция устанавливает errno в EOVERFLOW, если оно не потому что аргумент слишком большой.
Original:
POSIX requires that this function sets errno to EOVERFLOW if it fails because the argument is too large.
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]