OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / time.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Modified by Michael Haardt <michael@moria.de>
26 .\" Modified Sat Jul 24 14:13:40 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Additions by Joseph S. Myers <jsm28@cam.ac.uk>, 970909
28 .\"
29 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
30 .\"         all rights reserved.
31 .\" Translated Thu Jun 26 21:11:17 JST 1997
32 .\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
33 .\" Modified Sun Mar 21 17:23:27 JST 1999
34 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
35 .\"
36 .\"WORD:        the Epoch               µª¸µ
37 .\"
38 .TH TIME 2 2010-02-25 "Linux" "Linux Programmer's Manual"
39 .SH Ì¾Á°
40 time \- ÉÃñ°Ì¤Î»þ´Ö¤òÆÀ¤ë
41 .SH ½ñ¼°
42 .B #include <time.h>
43 .sp
44 .BI "time_t time(time_t *" t );
45 .SH ÀâÌÀ
46 .BR time ()
47 ¤Ï¡¢µª¸µ (Epoch; 1970-01-01 00:00:00 (UTC)) ¤«¤é¤ÎÉÿô¤ÇÊÖ¤¹¡£
48
49 ¤â¤·
50 .I t
51 ¤¬ NULL ¤Ç¤Ê¤«¤Ã¤¿¤éÊÖ¤êÃͤÏ
52 .I t
53 ¤Î»Ø¤·¤Æ¤¤¤ë¥á¥â¥ê¤Ë¤â³ÊǼ¤µ¤ì¤ë¡£
54 .SH ÊÖ¤êÃÍ
55 À®¸ù¤·¤¿¾ì¹ç¡¢µª¸µ(the Epoch)¤«¤é¤Î·Ð²áÉÿô¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï
56 \fI((time_t)\ \-1)\fP ¤òÊÖ¤·¡¢\fIerrno\fP ¤òÀßÄꤹ¤ë¡£
57 .SH ¥¨¥é¡¼
58 .TP
59 .B EFAULT
60 .I t
61 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤Æ¤¤¤ë¡£
62 .SH ½àµò
63 SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
64 .\" .br
65 .\" 4.3BSD ¤Ç¤Ï¤³¤Î´Ø¿ô¤Ï
66 .\" .BR gettimeofday (2)
67 .\" ¤Ë¼è¤Ã¤ÆÂå¤ï¤é¤ì¤Æ¤¤¤ë¡£
68 POSIX ¤Ë¤Ï¥¨¥é¡¼¾õÂ֤ε¬Äê¤Ï¤Ê¤¤¡£
69 .SH Ãí°Õ
70 POSIX.1 ¤Ç¤Ï
71 .I ¡Öµª¸µ¤«¤é¤Î·Ð²áÉÿô (seconds since the Epoch)¡×
72 ¤Ï»ØÄꤷ¤¿»þ¹ï¤Èµª¸µ¤È¤Î´Ö¤ÎÉÿô¤Ç¤¢¤ë¤ÈÄêµÁ¤·¤Æ¤¤¤ë¡£
73 ¤¿¤À¤·¤³¤Î¤È¤­ UTC (¶¨ÄêÀ¤³¦»þ) ¤«¤éÉäòµá¤á¤ëÊÑ´¹¤Ë¤Ï¡¢ÁÇËѤÊÊÑ´¹¼°
74 (±¼Éäò̵»ë¤·¡¢ 4 ¤Ç³ä¤êÀÚ¤ì¤ëǯ¤ò¤¹¤Ù¤Æ±¼Ç¯¤È¤·¤¿¼°)
75 ¤òÍѤ¤¤ë¤â¤Î¤È¤·¤Æ¤¤¤ë¡£
76 ¤³¤ÎÃͤϵª¸µ¤È¸½ºß»þ¹ï¤È¤Î´Ö¤Ç¼ÂºÝ¤Ë·Ð²á¤·¤¿Éÿô¤ÈƱ¤¸¤Ç¤Ï¤Ê¤¤¡£
77 ¤Ê¤¼¤Ê¤é¤Ð±¼Éä¬Â¸ºß¤¹¤ë¤·¡¢»þ·×(clock)¤òɸ½à»þ´Ö(standard reference)¤Ë
78 Ʊ´ü¤µ¤»¤ë¤³¤È¤òÍ׵ᤵ¤ì¤Æ¤¤¤Ê¤¤¤«¤é¤Ç¤¢¤ë¡£
79 ¤³¤ÎÄêµÁ¤Î°Õ¿Þ¤Ïµª¸µ¤«¤é¤Î·Ð²áÉÿô¤Î²ò¼á¤ò°ìÄê¤Ë¤¹¤ë¤³¤È¤Ç¤¢¤ë¡£
80 ¤è¤ê¾Ü¤·¤¤¸¶Íý¤Ï POSIX.1 Annex B 2.2.2 ¤ò»²¾È¤¹¤ë¤³¤È¡£
81 .SH ´ØÏ¢¹àÌÜ
82 .BR date (1),
83 .BR gettimeofday (2),
84 .BR ctime (3),
85 .BR ftime (3),
86 .BR time (7)