ctime
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <time.h>
|
||
char* ctime( const time_t* time ); |
||
Converte dato il tempo da epoca ad un tempo calendario locale e quindi a una rappresentazione testuale, come se chiamando
asctime(localtime(time)). La stringa risultante ha il seguente formato: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- il giorno della settimana (uno deiMon,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- il mese (uno deiJan,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- il giorno del meseOriginal: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- oreOriginal:hh- hoursThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.mm- minutiOriginal:mm- minutesThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.ss- secondiOriginal:ss- secondsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.yyyy- anniOriginal:yyyy- yearsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La funzione non supporta la localizzazione.
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.
Parametri
| time | - | puntatore a un oggetto
time_t specifica il tempo di stampaOriginal: pointer to a time_t object specifying the time to printThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valore di ritorno
puntatore ad una stringa con terminazione null personaggio che tiene la rappresentazione testuale di data e ora. La stringa può essere condiviso tra
asctime e ctime, e può essere sovrascritto ad ogni invocazione di una di queste funzioni.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.
Note
Questa funzione restituisce un puntatore a dati statici e non è thread-safe. Inoltre, modifica l'oggetto statico
tm che possono essere condivise con gmtime e localtime. POSIX segna questa funzione obsoleta e raccomanda strftime invece.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.
Il comportamento può essere definito per i valori di time_t che risultato nella stringa più lunga di 25 caratteri (ad esempio: anno 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.
Esempio
| This section is incomplete Reason: no example |
Vedi anche
converte un oggetto time_t di una rappresentazione testualeOriginal: 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. (funzione) | |
converte un oggetto personalizzato per tm rappresentazione testualeOriginal: 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. (funzione) | |
C++ documentation for ctime
| |