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


localtime

Convert a time_t type to a struct tm type.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


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

Parameters for this facility are:

timer  
const time_t *  
The address of the time_t variable  

Remarks:

The localtime() function converts a time_t type, pointed to by timer, and returns it as a pointer to an internal struct tm type. The struct tm pointer is static; it is overwritten each time localtime() is called.

Return:

localtime() converts timer and returns a pointer to a struct tm.

See Also:

"mktime"

For Usage:

Refer to the example for "Example of difftime usage.".


[ 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