Return the current system calendar time.
Compatibility:This function is compatible with the following targets:
|
EMB/RTOS
|
|
#include <time.h>
time_t time(time_t *timer);Parameters:
Parameters for this facility are:
time() returns the system current calendar time.
#include <time.h>
#include <stdio.h>
int main(void)
{
time_t systime;
systime = time(NULL);
puts(ctime(&systime));
return 0;
}
Output:
Tue Nov 30 13:06:47 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