Re: Easter dates calculation?
Posted in 1994
Simon David — — source: Informix-list mailing list archive (1991-1998)
>In <1994Feb24.161110.352@spc.nl> piet@spc.nl (Piet Brekelmans) writes: > >>Does anyone know of a routine to calculate easter dates? How about this little gem of a shell script, (see recent discussion in comp.sources.d) # # Usage: easter YEAR # Returns the date of Easter for the year given # if [ ! $# -eq 1 ] then echo "Usage: $0 year" exit 1 fi echo $* '[ddsf[lfp[too early ]Pq]s@1583>@ ddd19%1+sg100/1+d3*4/12-sx8*5+25/5-sz5*4/lx-10-sdlg11*20+lz+lx-30% d[30+]s@0>@d[[1+]s@lg11<@]s@25=@d[1+]s@24=@se44le-d[30+]s@21>@dld+7%-7+ [March ]smd[31-[April ]sm]s@31<@psnlmPpsn1z>p]splpx' | dc | sed 'N y/\\n/ /' # End Simon -- simond@informix.com