Espaços nominais
Variantes
Acções

mktime

Da cppreference.com
< c‎ | chrono

 
 
Utilitários de data e hora
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Manipulação do tempo
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
Conversões de formato
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
Constantes
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
Tipos
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
 
Defined in header <time.h>
time_t mktime( tm* time );
Converte o tempo do calendário local para um tempo desde época como um objeto time_t, ignorando os valores de time->tm_wday e time->yday. Os valores de outros elementos de time não se restringem às suas gamas habituais. Um valor negativo de time->tm_isdst causa mktime para tentar determinar se o horário de verão estava em vigor.
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.
Se bem sucedido, recalcula e atualiza todos os campos em time para caber suas escalas adequadas.
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.

Índice

[editar] Parâmetros

time -
ponteiro para um objeto tm especificando o tempo de calendário local para converter
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.

[editar] Valor de retorno

tempo decorrido desde epoch como um objecto sobre o sucesso ou time_t -1 se time não pode ser representado como um objecto 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.

[editar] Exemplo

[editar] Veja também

converte tempo desde a época de tempo do calendário expressa como hora local
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.

(função) [edit]