asctime
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <time.h>
|
||
char* asctime( const tm* time_ptr ); |
||
Convierte dado
tm calendario tiempo a una representación textual .Original:
Converts given calendar time
tm to a textual representation.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.
La cadena resultante tiene el siguiente formato:
Original:
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- el día de la semana (uno deMon,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- el mes (una deJan,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- el día del mesOriginal: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- horasOriginal:hh- hoursThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.mm- minutosOriginal:mm- minutesThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.ss- segundosOriginal:ss- secondsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.yyyy- añosOriginal:yyyy- yearsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La función no es compatible con localización .
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.
Parámetros
| time_ptr | - | puntero a un objeto
tm especificando el tiempo de imprimirOriginal: pointer to a tm 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. |
Valor de retorno
puntero a una cadena de caracteres terminada en cero estático celebración de la representación textual de fecha y hora. La cadena puede ser compartida entre
asctime y ctime, y puede ser sobreescrita en cada invocación de cualquiera de estas funciones .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.
Notas
Esta función devuelve un puntero a datos estáticos y no es seguro para subprocesos. POSIX marca esta función obsoleta y recomienda
strftime lugar .Original:
This function returns a pointer to static data and is not thread-safe. 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.
El comportamiento no está definido si la cadena de producción sería superior a 25 caracteres, si
timeptr->tm_wday o timeptr->tm_mon no están dentro de los rangos esperados, o si excede timeptr->tm_year INT_MAX-1990 .Original:
The behavior is undefined if the output string would be longer than 25 characters, if
timeptr->tm_wday or timeptr->tm_mon are not within the expected ranges, or if timeptr->tm_year exceeds INT_MAX-1990.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.
Algunas implementaciones de manejar
timeptr->tm_mday==0 en el sentido del último día del mes anterior .Original:
Some implementations handle
timeptr->tm_mday==0 as meaning the last day of the preceding month.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.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |
Ver también
convierte un objeto tm a una representación textualOriginal: converts a tm 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. (función) | |
convierte un objeto a la representación textual tm personalizadoOriginal: 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. (función) | |
Documentación de C++ para asctime
| |