OSDN Git Service

02d0564cb374b137cd5c3b11f6dffa1be155c214
[linuxjm/LDP_man-pages.git] / release / man3 / dysize.3
1 .\"  Copyright 2001 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" aeb: some corrections
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH DYSIZE 3 2010\-09\-22 GNU "Linux Programmer's Manual"
32 .SH 名前
33 dysize \- 与えた年の日数を返す
34 .SH 書式
35 \fB#include <time.h>\fP
36 .sp
37 \fBint dysize(int \fP\fIyear\fP\fB);\fP
38 .sp
39 .in -4n
40 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
41 .in
42 .sp
43 \fBdysize\fP(): _BSD_SOURCE || _SVID_SOURCE
44 .SH 説明
45 この関数は通常の年には 365 を返し、うるう年には 366 を返す。 うるう年の計算は次の式による:
46 .sp
47 (year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0)
48 .sp
49 この式は \fI__isleap(year)\fP マクロで定義されており、 \fI<time.h>\fP にもある。
50 .SH 準拠
51 この関数は SunOS 4.x で生まれた。
52 .SH 注意
53 .\" The SCO version of this function had a year-2000 problem.
54 これは互換用の関数に過ぎない。新しいプログラムでは使わないこと。
55 .SH 関連項目
56 \fBstrftime\fP(3)
57 .SH この文書について
58 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
59 である。プロジェクトの説明とバグ報告に関する情報は
60 http://www.kernel.org/doc/man\-pages/ に書かれている。