OSDN Git Service

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