Category : Recently Uploaded Files
Archive   : SNIP9503.ZIP
Filename : SCALDATE.H

 
Output of file : SCALDATE.H contained in archive : SNIP9503.ZIP
/*
** scalar date routines -- public domain by Ray Gardner
** These will work over the range 1/01/01 thru 14699/12/31
*/

/*
** Define ISO to be 1 for ISO (Mon-Sun) calendars
**
** ISO defines the first week with 4 or more days in it to be week #1.
*/

#ifndef ISO
#define ISO 0
#endif

#if (ISO != 0 && ISO != 1)
#error ISO must be set to either 0 or 1
#endif

int isleap (unsigned yr);
long ymd_to_scalar (unsigned yr, unsigned mo, unsigned day);
void scalar_to_ymd (long scalar, unsigned *yr, unsigned *mo, unsigned *day);
int dow(unsigned yr, unsigned mo, unsigned day);
int valiDate(unsigned yr, unsigned mo, unsigned day);
int dow(unsigned yr, unsigned mo, unsigned day);
int daynum(int year, int month, int day);
int weeknum(int year, int month, int day);


  3 Responses to “Category : Recently Uploaded Files
Archive   : SNIP9503.ZIP
Filename : SCALDATE.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/