SilverScreen Solid Modeler

mktime

mktime

Previous topic Next topic  

mktime

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

time_t mktime( struct tm *tp )

 

struct tm *tp;        /* address of time structure */

 

 

 




Synopsis

#include "time.h"

 

The mktime function constructs a value of type time_t from the time specified by the struct tm pointed to by tp . The components of tp must be valid. -1 is returned if tp cannot be converted.

 

 

Parameters

tp is the address of a time structure.

 

 

Return Value

mktime returns a time_t value corresponding to the time represented by tp, if successful, and -1 (cast to time_t) if tp is not convertible.

 

 

See Also

time , localtime , gmtime