.\" Copyright 2001 Walter Harms (walter.harms@informatik.uni-oldenburg.de) .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" aeb: some corrections .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2002 NAKANO Takeo all rights reserved. .\" Translated Sun 6 Jan 2002 by NAKANO Takeo .\" .TH DYSIZE 3 2013\-09\-25 GNU "Linux Programmer's Manual" .SH 名前 dysize \- 与えた年の日数を返す .SH 書式 \fB#include \fP .sp \fBint dysize(int \fP\fIyear\fP\fB);\fP .sp .in -4n glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照): .in .sp \fBdysize\fP(): _BSD_SOURCE || _SVID_SOURCE .SH 説明 この関数は通常の年には 365 を返し、うるう年には 366 を返す。 うるう年の計算は次の式による: .sp (year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0) .sp この式は \fI__isleap(year)\fP マクロで定義されており、 \fI\fP にもある。 .SH 属性 .SS "マルチスレッディング (pthreads(7) 参照)" \fBdysize\fP() 関数はスレッドセーフである。 .SH 準拠 この関数は SunOS 4.x で生まれた。 .SH 注意 .\" The SCO version of this function had a year-2000 problem. これは互換用の関数に過ぎない。新しいプログラムでは使わないこと。 .SH 関連項目 \fBstrftime\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。