home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / C / DVLD01 / DATEVLD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-27  |  1.1 KB  |  35 lines

  1. /******************************************************************************
  2. *
  3. * Narrative : Defines function prototypes for julian and gregorian date
  4. *          conversion functions.  Converts any date from 10/16/1582
  5. *          to 12/31/9999.
  6. *
  7. * Notice    : Copr. (C) 1990, 1991 Albert C. Schmitt.  All Rights Reserved.
  8. *
  9. ******************************************************************************/
  10.  
  11. #if !defined(DATEVLD_H)
  12. #define DATEVLD_H
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. LPSTR FAR PASCAL dayName(LONG jdate);
  19. int FAR PASCAL daysInMonth(int month, int year);
  20. LONG FAR PASCAL _fromJulian(LPINT month, LPINT day, LPINT year, LONG jdate);
  21. int FAR PASCAL isLeapYear(int year);
  22. VOID FAR PASCAL toDate(LPSTR sdate, LONG jdate);
  23. LONG FAR PASCAL toJul (LPSTR sdate);
  24. LONG FAR PASCAL _tojulian (int month, int day, int year);
  25. int FAR PASCAL yearName(LONG jdate);
  26. VOID FAR PASCAL StrDate (LPSTR sdate, int month, int day, int year);
  27. int FAR PASCAL dayOfWeek(LONG jdate);
  28. void BuildDateFormat(void);
  29.  
  30. #ifdef    __cplusplus
  31. }
  32. #endif
  33.  
  34. #endif /* DATEVLD_H */
  35.