Convert a tm structure to a character array.
This function is compatible with the following targets:
|
|
#include <time.h>
char *asctime(const struct tm *timeptr);Parameters:
Parameters for this facility are:
asctime() returns a null terminated character array pointer containing the converted tm structure.
#include <time.h>
#include <stdio.h>
int main(void)
{
time_t systime;
struct tm *currtime;
systime = time(NULL);
currtime = localtime(&systime);
puts(asctime(currtime));
return 0;
}
Output:
Tue Nov 30 12:56:05 1993
[ 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