OSDN Git Service

(split) LDP: Update drafts based on LDP v3.40.
[linuxjm/LDP_man-pages.git] / draft / man3 / difftime.3
index c2f6856..94c9f25 100644 (file)
 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 19:48:17 1993 by Rik Faith (faith@cs.unc.edu)
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 1997 NAGOYA Hiroaki
-.\"         all rights reserved.
-.\" Translated Mon Feb 10 1997 by Hiroaki Nagoya <nagoya@is.titech.ac.jp>
-.\" Updated & Modified Sat Mar 23 23:57:43 JST 2002
-.\"          by Yuichi SATO <ysato@h4.dion.ne.jp>
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.\"WORD:       epoch   µª¸µ
-.\"
-.TH DIFFTIME 3  2010-02-25 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O difftime \- calculate time difference
-difftime \- »þ¹ï¤Î´Ö³Ö¤Î·×»»
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH DIFFTIME 3 2010\-02\-25 GNU "Linux Programmer's Manual"
+.SH 名前
+difftime \- 時刻の間隔の計算
+.SH 書式
 .nf
-.B #include <time.h>
+\fB#include <time.h>\fP
 .sp
-.BI "double difftime(time_t " time1 ", time_t " time0 );
+\fBdouble difftime(time_t \fP\fItime1\fP\fB, time_t \fP\fItime0\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O The
-.\"O .BR difftime ()
-.\"O function returns the number of seconds elapsed
-.\"O between time \fItime1\fP and time \fItime0\fP, represented as a
-.\"O .IR double .
-.\"O Each of the times is specified in calendar time, which means its
-.\"O value is a measurement (in seconds) relative to the
-.\"O Epoch, 1970-01-01 00:00:00 +0000 (UTC).
-´Ø¿ô
-.BR difftime ()
-¤Ï»þ¹ï \fItime0\fP ¤«¤é
-»þ¹ï \fItime1\fP ¤Þ¤Ç¤Î·Ð²á»þ´Ö¤ò
-.I double
-·¿¤ÇÊÖ¤¹¡£³Æ¡¹¤Î»þ¹ï¤Ï¥«¥ì¥ó¥À¡¼»þ´Ö¤Ç»ØÄꤹ¤ë¡£
-¤Ä¤Þ¤ê¡¢µª¸µ (Epoch; 1970-01-01 00:00:00 +0000 (UTC)) ¤«¤é¤Î
-·Ð²á»þ´Ö¤òÉÃñ°Ì¤Ç»ØÄꤹ¤ë¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 説明
+関数 \fBdifftime\fP()  は時刻 \fItime0\fP から 時刻 \fItime1\fP までの経過時間を \fIdouble\fP
+型で返す。各々の時刻はカレンダー時間で指定する。 つまり、紀元 (Epoch; 1970\-01\-01 00:00:00 +0000 (UTC)) からの
+経過時間を秒単位で指定する。
+.SH 準拠
 SVr4, 4.3BSD, C89, C99.
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O On a POSIX system,
-.\"O .I time_t
-.\"O is an arithmetic type, and one could just
-.\"O define
-POSIX ¥·¥¹¥Æ¥à¤Ç¤Ï
-.I time_t
-¤Ï¿ôÃÍ·¿¤Ê¤Î¤Ç¡¢°ú¤­»»¤ÎºÝ¤Ëµ¯¤³¤ë²ÄǽÀ­¤Î¤¢¤ë¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤ò
-µ¤¤Ë¤·¤Ê¤¤¾ì¹ç¤Ï¡¢Ã±½ã¤Ë
+.SH 注意
+POSIX システムでは \fItime_t\fP は数値型なので、引き算の際に起こる可能性のあるオーバーフローを 気にしない場合は、単純に
 .RS
 .nf
 
@@ -84,21 +54,12 @@ POSIX 
 
 .fi
 .RE
-.\"O when the possible overflow in the subtraction is not a concern.
-¤ÈÄêµÁ¤Ç¤­¤ë¡£
-.\"O On other systems, the data type
-.\"O .I time_t
-.\"O might use some other encoding
-.\"O where subtraction doesn't work directly.
-¾¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¥Ç¡¼¥¿·¿
-.I time_t
-¤Ë²¿¤«Ê̤Υ¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬»È¤ï¤ì¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ê¡¢
-¤½¤Î¾ì¹ç¤Ë¤ÏľÀÜ°ú¤­»»¤ò¹Ô¤¦¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR date (1),
-.BR gettimeofday (2),
-.BR time (2),
-.BR ctime (3),
-.BR gmtime (3),
-.BR localtime (3)
+と定義できる。 他のシステムでは、データ型 \fItime_t\fP に何か別のエンコーディングが使われていることがあり、
+その場合には直接引き算を行うことはできない。
+.SH 関連項目
+\fBdate\fP(1), \fBgettimeofday\fP(2), \fBtime\fP(2), \fBctime\fP(3), \fBgmtime\fP(3),
+\fBlocaltime\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。