[comp.sources.wanted] Wanted: date algorithms

wilf@niksula.hut.fi (Johan Wilhelm Wikman) (01/09/91)

Hello

I'm writing a Date-class in C++ and I need algorithms for
calculating different stuff.
E.g. 
	- given an certain date I must calculate
		the number of the week
		which weekday it is
		which month
		etc. etc.
	- adding of dates
	- adding years, months or days to a date

	etc. etc.

Any pointers would be very helpful.

Thanks
	Johan 
	wilf@niksula.hut.fi

	

ts@uwasa.fi (Timo Salmi) (01/09/91)

In article <WILF.91Jan8181032@hydroman.hut.fi> wilf@niksula.hut.fi (Johan Wilhelm Wikman) writes:
>Hello
>
>I'm writing a Date-class in C++ and I need algorithms for
>calculating different stuff.
>E.g. 
>	- given an certain date I must calculate
>		the number of the week
>		which weekday it is
>		which month
>		etc. etc.
:

If you haven't yet looked at it, you'll find some information and
references in /pc/ts/tsfaq15.arc available by anonymous ftp from
uwasa.fi. 

...................................................................
Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun