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

Convert a struct tm item to a time_t type.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <time.h>
time_t mktime(struct tm *timeptr);
Parameters:
Parameters for this facility are:
Remarks:
The mktime() function converts a struct tm type and returns it as a time_t type.
The function also adjusts the fields in timeptr if necessary. The tm_sec, tm_min, tm_hour, and tm_day are processed such that if they are greater than their maximum, the appropriate carry-overs are computed. For example, if timeptr->tm_min is 65, timeptr->tm_hour will be incremented by 1 and timeptr->min will be set to 5.
The function also computes the correct values for timeptr->tm_wday and timeptr->tm_yday.
Return:
mktime() returns the converted tm structure as a time_t type.
See Also:
"localtime"
For example of 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