Varianti

time

Da cppreference.com.
< c | chrono

<metanoindex/>

 
 
Data e ora utilità
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Tempo di manipolazione
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
Formato conversioni
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
Costanti
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
Tipi
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>
Elemento definito nell'header <time.h>
time_t time( time_t *time );
Restituisce l'ora attuale calendario codificato come oggetto time_t.
Original:
Returns the current calendar time encoded 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.

Parametri

time -
puntatore a un oggetto time_t per memorizzare l'ora o NULL
Original:
pointer to a time_t object to store the time in or NULL
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valore di ritorno

Tempo del calendario attuale codificato come oggetto time_t in caso di successo, (time_t)(-1) in caso di errore. Se l'argomento non è NULL, il valore restituito è uguale al valore memorizzato nell'oggetto puntato da l'argomento.
Original:
Current calendar time encoded as time_t object on success, (time_t)(-1) on error. If the argument is not NULL, the return value is equal to the value stored in the object pointed to by the argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Note

La codifica del tempo del calendario in time_t non è specificato, ma la maggior parte dei sistemi sono conformi a POSIX specification e restituire un valore di tipo integrale nell'azienda il numero di secondi da Epoch. Le implementazioni in cui time_t è a 32-bit con segno (molte implementazioni storiche) fallire l'anno 2038.
Original:
The encoding of calendar time in time_t is unspecified, but most systems conform to POSIX specification and return a value of integral type holding the number of seconds since the Epoch. Implementations in which time_t is a 32-bit signed integer (many historical implementations) fail in the year 2038.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Esempio

Vedi anche

converte il tempo in quanto epoca di tempo del calendario espresso in ora 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.

(funzione) [modifica]
converte il tempo in quanto epoca di tempo del calendario espressa in tempo universale coordinato
Original:
converts time since epoch to calendar time expressed as Universal Coordinated Time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [modifica]