1DYSIZE(3)                  Linux Programmer's Manual                 DYSIZE(3)
2
3
4

NAME

6       dysize - get number of days for a given year
7

SYNOPSIS

9       #include <time.h>
10
11       int dysize(int year);
12
13   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
14
15       dysize(): _BSD_SOURCE || _SVID_SOURCE
16

DESCRIPTION

18       The  function  returns  365  for a normal year and 366 for a leap year.
19       The calculation for leap year is based on:
20
21       (year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0)
22
23       The formula is defined  in  the  macro  __isleap(year)  also  found  in
24       <time.h>.
25

CONFORMING TO

27       This function occurs in SunOS 4.x.
28

NOTES

30       This is a compatibility function only.  Don't use it in new programs.
31

SEE ALSO

33       strftime(3)
34

COLOPHON

36       This  page  is  part of release 3.53 of the Linux man-pages project.  A
37       description of the project, and information about reporting  bugs,  can
38       be found at http://www.kernel.org/doc/man-pages/.
39
40
41
42GNU                               2010-09-22                         DYSIZE(3)
Impressum