Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does the time_t type mean? Is there this in C language? I don’t understand. Please solve it.
What does the time_t type mean? Is there this in C language? I don’t understand. Please solve it.

In C language, time_t is longint, which is an integer type and can define macros;

typetime_olong; you can directly define data in long type, and then call time(), or other Time function;

For example:

time_tlt;

lt=time(NULL); //Get the current system time.

Extended information

Usage of time_t

Example:

doubledifftime(time_ttime1, time_ttime0);

time_tmktime (structtm*timeptr);

time_ttime(time_t*timer);

char*asctime(conststructtm*timeptr);

char*ctime(consttime_t*timer );