localtime

暦時刻 (calendar time) を地方時 (local time) に変換します.

#include <time.h>
struct tm *localtime(
    const time_t *timer
);

localtime 関数は timer が指す暦時刻を地方時に変換します.

戻り値

C言語サンプルプログラム

暦時刻を地方時 (local time) に変換するサンプルプログラムをご覧下さい.