localtime---convert time to local representation
#include <time.h> struct tm *localtime(time_t *clock); struct tm *localtime_r(time_t *clock, struct tm *res);
localtime converts the time at clock into local time, then
converts its representation from the arithmetic representation to the
traditional representation defined by
localtime constructs the traditional time representation in static
storage; each call to
localtime will overwrite the
information generated by previous calls to either function.
mktime is the inverse of
A pointer to the traditional time representation (
ANSI C requires
localtime requires no supporting OS subroutines.
Go to the first, previous, next, last section, table of contents.