C++ Programming/Code/Standard C Library/Functions/mktime

From Wikibooks, open books for an open world
Jump to navigation Jump to search

mktime[edit | edit source]

Syntax
#include <ctime>
time_t mktime( struct tm *time );

The mktime() function converts the local time in time to calendar time, and returns it. If there is an error, -1 is returned.

Related topics
asctime - ctime - gmtime - time