Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

DYSIZE

Section: Bibliotheksfunktionen (3)
Updated: 12. November 2001
Index Return to Main Contents
 

BEZEICHNUNG

dysize - Berechne die Anzahl der Tage in Jahr  

ÜBERSICHT

#define _BSD_SOURCE /* oder: #define _SVID_SOURCE */
#include <time.h>

int dysize(int year);

 

BESCHREIBUNG

Die Funktion gibt 365 für normale Jahre und 366 für Schaltjahre zurück. Die Berechnung der Schaltjahre erfolgt durch:

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

Die Formel findet sich im Macro __isleap(year), welches ebenfalls in <time.h> definiert ist.  

KONFORM ZU

Diese Funktion taucht in SunOS 4.x auf.  

BEMERKUNGEN

Diese Funktion dient ausschließlich der Kompatibilität. Verwenden Sie sie nicht in neuen Programmen. Die SCO-Version dieser Funktion hatte ein Jahr-2000-Problem.  

SIEHE AUCH

strftime(3), time(3).


 

Index

BEZEICHNUNG
ÜBERSICHT
BESCHREIBUNG
KONFORM ZU
BEMERKUNGEN
SIEHE AUCH

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright.

1999-2008 Linuxinfor.com. No rights reserved.