Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ftime(3C) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

date(1)

gettimeofday(2)

settimeofday(2)

ctime(3)

TIME(3C)  —  NEWS-OS 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> で定義されているような、 その引数によってポイントされる構造体に書き込みます。

この構造体には、秒単位と、より正確な 1/1000 秒単位で示すことができる ある特定の時と、ローカルなタイムゾーン (グリニッジ標準時から西方向に分単位で指定されたもの) と、 サマータイムのように日中の時間を節約するために、 地域的に、ある特定の期間、正規の時間より進める時間を示すフラグ (ゼロ以外の場合) が含まれます。

関連事項

date(1), gettimeofday(2), settimeofday(2), ctime(3)

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026