File: dysize.3

package info (click to toggle)
manpages-de 0.4-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,808 kB
  • ctags: 4
  • sloc: sh: 7,666; makefile: 60
file content (46 lines) | stat: -rw-r--r-- 1,632 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.\"  Copyright (c) 2001 Walter Harms <walter.harms@informatik.uni-oldenburg.de>
.\"
.\"  This program is free software; you can redistribute it and/or modify
.\"  it under the terms of the GNU General Public License as published by
.\"  the Free Software Foundation; version 2 dated June, 1991.
.\"
.\"  This program is distributed in the hope that it will be useful,
.\"  but WITHOUT ANY WARRANTY; without even the implied warranty of
.\"  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\"  GNU General Public License for more details.
.\"
.\"  You should have received a copy of the GNU General Public License
.\"  along with this program;  if not, write to the Free Software
.\"  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
.\"
.TH DYSIZE 3 "12. November 2001" "GNU" "Bibliotheksfunktionen"
.SH BEZEICHNUNG
dysize \- Berechne die Anzahl der Tage in Jahr
.SH BERSICHT
.sp
.BR "#define _BSD_SOURCE" "   /* oder: #define _SVID_SOURCE */
.br
.BR "#include <time.h>
.sp
.BI "int dysize(int " year );
.sp
.SH BESCHREIBUNG
Die Funktion gibt 365 fr normale Jahre und 366 fr Schaltjahre zurck.
Die Berechnung der Schaltjahre erfolgt durch:
.sp
(year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0)
.sp
Die Formel findet sich im Macro
.IR __isleap(year) ,
welches ebenfalls in
.I <time.h>
definiert ist.
.SH "KONFORM ZU"
Diese Funktion taucht in SunOS 4.x auf.
.SH BEMERKUNGEN
Diese Funktion dient ausschlielich der Kompatibilitt.  Verwenden Sie
sie nicht in neuen Programmen.  Die SCO-Version dieser Funktion hatte
ein Jahr-2000-Problem.
.SH "SIEHE AUCH"
.BR strftime (3),
.BR time (3).