Espacios de nombres
Variantes

time

De cppreference.com
< c | chrono
 
 
Fecha y hora de los servicios públicos
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Tiempo de manipulación
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.
Conversiones de formato
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.
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.
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Definido en el archivo de encabezado <time.h>
time_t time( time_t *time );
Devuelve la hora actual del calendario codificado como un objeto 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.

Parámetros

time -
puntero a un objeto time_t para almacenar el tiempo en 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.

Valor de retorno

El tiempo del calendario actual codificado como objeto time_t en el éxito, (time_t)(-1) en caso de error. Si el argumento no es NULL, el valor devuelto es igual al valor almacenado en el objeto apuntado por el argumento .
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.

Notas

La codificación de tiempo del calendario en time_t no está especificado, pero la mayoría de los sistemas se ajustan a POSIX specification y devuelven un valor de tipo entero que contiene el número de segundos desde la Época. Las implementaciones en las que time_t es un 32-bits con signo (implementaciones históricos no muchos) en el año 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.

Ejemplo

Ver también

convierte el tiempo transcurrido desde la época en cuando calendario expresado 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.

(función) [editar]
convierte el tiempo transcurrido desde la época en cuando calendario expresado en hora universal coordinada
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.

(función) [editar]