Convert a time_t type to a character array.
This function is compatible with the following targets:
|
|
#include <time.h>
char *ctime(const time_t *timer);Parameters:
Parameters for this facility are:
ctime() returns a null terminated character array pointer containing the converted time_t value.
#include <time.h>
#include <stdio.h>
int main(void)
{
time_t systime;
systime = time(NULL);
puts(ctime(&systime));
return 0;
}
Output:
Wed Jul 20 13:32:17 1994
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000