mktime
Da 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>
|
||
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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Exemplo
| This section is incomplete Reason: no example |
[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) | |
| C++ documentation for mktime
| |