2 .\" Copyright 2001 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\" aeb: some corrections
7 .TH dysize 3 (date) "Linux man-pages (unreleased)"
9 dysize \- get number of days for a given year
12 .RI ( libc ", " \-lc )
15 .B "#include <time.h>"
17 .BI "int dysize(int " year );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
29 glibc 2.19 and earlier:
30 _BSD_SOURCE || _SVID_SOURCE
33 The function returns 365 for a normal year and 366 for a leap year.
34 The calculation for leap year is based on:
38 (year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0)
42 The formula is defined in the macro
47 For an explanation of the terms used in this section, see
55 Interface Attribute Value
58 T} Thread safety MT-Safe
64 This function occurs in SunOS 4.x.
66 This is a compatibility function only.
67 Don't use it in new programs.
68 .\" The SCO version of this function had a year-2000 problem.