Date: Fri, 31 Mar 1995 17:10:39 +0000 Reply-To: The NOMAD2 Discussion List Sender: The NOMAD2 Discussion List From: Stace Cameron Subject: elapsed time I thought there must me more to this than meets the eye, so I spent some more time. I dont get the results you were expecting, see the following code. Is it because 4/3/95 is a Monday? define &sd as date expr = '040377'; define &ed as date expr = '033095'; define &yrs_service as 99 expr = int(interval(&sd,&ed,years)); define &last_anniv as date expr = addate(&sd,0,&yrs_service); define &dys_service as 999 expr = (&ed - &last_anniv); print &last_anniv; print &yrs_service; print &dys_service; returns: &LAST_ANNIV=04/03/94 &YRS_SERVICE=17 &DYS_SERVICE=361 Stace Cameron Southern Illinois University - School of Medicine scameron@siumed.edu back to index