Espaces de noms
Variantes

mktime

De cppreference.com
< c | chrono

<metanoindex/>

 
 
Utilitaires date et l'heure
Fonctions
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La manipulation du temps
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
Les conversions de format
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
Types
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
 
<tbody> </tbody>
Déclaré dans l'en-tête <time.h>
time_t mktime( tm* time );
Convertit le temps du calendrier local pour un temps depuis l'époque comme un objet time_t, en ignorant les valeurs de time->tm_wday et time->yday. Les valeurs des autres composantes de time ne se limitent pas à leurs gammes habituelles. Une valeur négative provoque des time->tm_isdst mktime pour tenter de déterminer si l'heure d'été est en vigueur .
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.
En cas de succès, recalcule et met à jour tous les champs dans time pour répondre à leurs propres gammes .
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.

Paramètres

time -
pointeur vers un objet tm précisant l'heure calendrier local à convertir
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.

Retourne la valeur

temps écoulé depuis l'époque comme un objet time_t en cas de succès ou si -1 time ne peut être représenté comme un objet 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.

Exemple

Voir aussi

convertit le temps depuis l'époque de temps du calendrier exprimée en heure locale
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.

(fonction) [edit]