TIME(3C) — UNIX Programmer’s Manual
名称
time, ftime − 日付と時間を得る
形式
long time(0)
long time(tloc)
long ∗tloc;
#include <sys/types.h>
#include <sys/timeb.h>
ftime(tp)
struct timeb ∗tp;
解説
これらのインタフェースは、 gettimeofday(2) の旧式のものです。
time は、 1970年 1月 1日 00:00:00GMT からの現在までの経過時間を 秒で返します。
tloc がナルでないときは、 返される値も tloc がポイントする位置に格納されます。
ftime のエントリは、 <sys/timeb.h> で定義されているような、 その引数によってポイントされる構造体に書き込みます。
The structure contains the time since the epoch in seconds, up to 1000 milliseconds of more-precise interval, the local time zone (measured in minutes of time westward from Greenwich), and a flag that, if nonzero, indicates that Daylight Saving time applies locally during the appropriate part of the year.
関連事項
date(1), gettimeofday(2), settimeofday(2), ctime(3)
NEWS-OSRelease 3.3