Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 235 -
------------------------------------------------------------------------------
9.4 Convert time to string. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
asctime
[Syntax]
#include <time.h>
char *asctime( const struct tm *timeptr ) ;
[Arguments]
timeptr Pointer to a structure "tm".
[Return]
Returns a pointer to a converted string.
[Description]
Converts a time data pointed by "timeptr" to a string. The format
of string is as follows.
"Sun Jan 01 00:00:00 1992\n"
| | | | | | | |
| | | | | | | +- Newline
| | | | | | +---- Year
| | | | | +--------- Second
| | | | +------------ Minute
| | | +--------------- Hour
| | +------------------ Date
| +--------------------- Month
+------------------------- Day
Stored buffer for a converted string is the same static buffer as
"ctime" function.