dysize(3)


NAME

   dysize - get number of days for a given year

SYNOPSIS

   #include <time.h>

   int dysize(int year);

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   dysize():
       Since glibc 2.19:
           _DEFAULT_SOURCE
       Glibc 2.19 and earlier:
           _BSD_SOURCE || _SVID_SOURCE

DESCRIPTION

   The  function  returns  365  for a normal year and 366 for a leap year.
   The calculation for leap year is based on:

   (year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0)

   The formula is defined  in  the  macro  __isleap(year)  also  found  in
   <time.h>.

ATTRIBUTES

   For   an   explanation   of   the  terms  used  in  this  section,  see
   attributes(7).

   
   Interface  Attribute      Value   
   
   dysize()   Thread safety  MT-Safe 
   

CONFORMING TO

   This function occurs in SunOS 4.x.

NOTES

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

SEE ALSO

   strftime(3)

COLOPHON

   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/glMultMatrixd.3gl.html
glMultMatrixd(3gl) - multiply the current matrix with the sp
glMultMatrix multiplies the current matrix with the one specified using m, and replaces the current matrix with the product. The current matrix is determined by

manpages/menu_opts.3menu.html
menu_opts(3menu) - set and get menu item options (Man Page)
The function set_item_opts sets all the given items option bits (menu option bits may be logically-ORed together). The function item_opts_on turns on the given

manpages/snprint_description.3.html
snprint_description(3) - netsnmp_mib_api functions (ManPage)
The functions dealing with MIB modules fall into four groups - those dealing with initialisation and shutdown, with reading in and parsing MIB files, with searc

manpages/git-credential.1.html
git-credential(1) Retrieve and store user credentials.......
Git has an internal interface for storing and retrieving credentials from system-specific helpers, as well as prompting the user for usernames and passwords. Th

manpages/glutEnterGameMode.3.html
glutEnterGameMode(3) - enters and leaves GLUT's game mode.
glutEnterGameMode is designed to enable high-performance fullscreen GLUT rendering, possibly at a different screen display format. Calling glutEnterGameMode cre

manpages/rsyncd.conf.5.html
rsyncd.conf(5) - configuration file for rsync in daemon mode
The rsyncd.conf file is the runtime configuration file for rsync when run as an rsync daemon. The rsyncd.conf file controls authentication, access, logging and

manpages/glFlush.3gl.html
glFlush(3gl) - force execution of GL commands in finite time
Different GL implementations buffer commands in several different locations, including network buffers and the graphics accelerator itself. glFlush empties all

manpages/ioprio_set.2.html
ioprio_set(2) - get/set I/O scheduling class and priority...
The ioprio_get() and ioprio_set() system calls respectively get and set the I/O scheduling class and priority of one or more threads. The which and who argument

manpages/linkat.2.html
linkat(2) - create a file link relative to directory file de
link() creates a new link (also known as a hard link) to an existing file. If newpath exists, it will not be overwritten. This new name may be used exactly as t

manpages/XAutoRepeatOn.3.html
XAutoRepeatOn(3) - manipulate keyboard settings and keyboard
The XChangeKeyboardControl function controls the keyboard characteristics defined by the XKeyboardControl structure. The value_mask argument specifies which val

manpages/sin.3.html
sin(3) - sine function (Library - Linux man page)...........
The sin() function returns the sine of x, where x is given in radians. RETURN VALUE On success, these functions return the sine of x. If x is a NaN, a NaN is re

manpages/pcre_config.3.html
pcre_config(3) - Perl-compatible regular expressions........
This function makes it possible for a client program to find out which optional features are available in the version of the PCRE library it is using. The argum





We can't live, work or learn in freedom unless the software we use is free.