ctime
De 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. |
| Défini dans l'en-tête <time.h>
|
||
Convertit donné le temps écoulé depuis l'époque à un moment civile locale et ensuite à une représentation textuelle, comme en appelant asctime(localtime(time)). La chaîne résultante a le format suivant:
Original:
Converts given time since epoch to a calendar local time and then to a textual representation, as if by calling asctime(localtime(time)). The resulting string has the following format:
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.
Www Mmm dd hh:mm:ss yyyy
Www- le jour de la semaine (un desMon,Tue,Wed,Thu,Fri,Sat,Sun) .Original:Www- the day of the week (one ofMon,Tue,Wed,Thu,Fri,Sat,Sun).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Mmm- le mois (l'un desJan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec) .Original:Mmm- the month (one ofJan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.dd- le jour du moisOriginal:dd- the day of the monthThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.hh- heuresOriginal:hh- hoursThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.mm- minutesOriginal:mm- minutesThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.ss- secondesOriginal:ss- secondsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.yyyy- ansOriginal:yyyy- yearsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La fonction de localisation ne supporte pas .
Original:
The function does not support localization.
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.
Sommaire |
[modifier] Paramètres
| time | - | pointeur vers un objet time_t spécifiant la durée d'impression
Original: pointer to a time_t object specifying the time to print The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
pointeur vers une chaîne de caractères terminée par NULL statique en maintenant la représentation textuelle de la date et de l'heure. La chaîne peut être partagé entre
asctime et ctime, et peut être écrasée à chaque appel de l'une de ces fonctions .Original:
pointer to a static null-terminated character string holding the textual representation of date and time. The string may be shared between
asctime and ctime, and may be overwritten on each invocation of any of those functions.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.
[modifier] Notes
Cette fonction retourne un pointeur vers des données statiques et n'est pas thread-safe. En outre, il modifie l'objet tm statique qui peuvent être partagées avec gmtime et localtime. POSIX marque cette fonction obsolète et recommande strftime la place .
Original:
This function returns a pointer to static data and is not thread-safe. In addition, it modifies the static tm object which may be shared with gmtime and localtime. POSIX marks this function obsolete and recommends strftime instead.
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.
Le comportement peut être définie pour les valeurs de time_t qui en résultent dans la chaîne de plus de 25 caractères (par exemple, année 10000)
Original:
The behavior may be undefined for the values of time_t that result in the string longer than 25 characters (e.g. year 10000)
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.
[modifier] Exemple
| This section is incomplete Reason: no example |
[modifier] Voir aussi
| convertit un objet time_t à une représentation textuelleOriginal: converts a time_t object to a textual representationThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
| convertit un objet à tm représentation textuelle personnaliséeOriginal: converts a tm object to custom textual representationThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
| C++ documentation for ctime
| |