[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


time

Return the current system calendar time.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <time.h>
time_t time(time_t *timer);
Parameters:

Parameters for this facility are:

timer  
time_t *  
The address of the time_t variable  

Remarks:

The time() function returns the computer system's calendar time. If timer is not a null pointer, the calendar time is also assigned to the item it points to.

Return:

time() returns the system current calendar time.

Example of time() usage.:
#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