MicrOS
mktime.c File Reference
#include "../time.h"

Functions

time_t mktime (tm *timeptr)
 Convert tm structure to time_t. More...
 

Function Documentation

◆ mktime()

time_t mktime ( tm timeptr)

Convert tm structure to time_t.

Returns the value of type time_t that represents the local time described by the tm structure pointed by timeptr (which may be modified).

Parameters
timeptrPointer to a tm structure that contains a calendar time broken down into its components (see struct tm).
Returns
A time_t value corresponding to the calendar time passed as argument. If the calendar time cannot be represented, a value of -1 is returned.