Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 56:53:39 |
Calls: | 584 |
Calls today: | 1 |
Files: | 1,139 |
D/L today: |
179 files (27,921K bytes) |
Messages: | 112,134 |
On Sun, 23 Mar 2025 07:16:05 +0000
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
Bigger range Easter program [111] bytes
minEast2.com:
d 100 l6A1639:0100 99 BF 0A 00-BE 82 00 01-D0 89 EB 89-CD 89 C1 F7 ................ 1639:0110 E7 92 AC 2C-30 73 F0 91-B1 13 F6 F1-91 F6 E5 96 ...,0s.......... 1639:0120 B9 02 00 89-D8 89 C5 D3-ED 29 EB 53-41 D3 EA F6 .........).SA... 1639:0130 F1 28 C3 8D-40 0F B1 1E-F6 F1 3D 06-1C 10 E1 58 .(..@.....=....X 1639:0140 29 D0 83 C0-07 39 C8 7C-F9 BB 20 34-2C 28 77 04 )....9.|.. 4,(w. 1639:0150 FE CF 04 1F-B2 F9 89 D7-D4 0A 35 30-30 86 E0 AB ..........500... 1639:0160 93 AB-B4 24 AB B4-09 CD 21 C3 ...$....!.
q
valid for 1753-4000 (tested 1753 - 2099)
Uses Oudin's Algorithm, with code taken from Hugo Size Coding Compo #20 runner up Sergo Polsky
The program deliberately doesn't add a crlf (just a space), so one can append the year by running in batch i.e.
showeast.bat
@echo offminEast2 %1
@rem showeast.bat
if @%1 == @ goto Usage
rem put 'day mth'
rem add 'year'echo where yyyy is in range 1753-4000
echo %1
goto :EOF
:Usage
echo Usage is: %0 yyyy
echo Output is Day Month Year
Example:
showeast 202520 4 2025
For those of you with the strange date format 'm d yyyy'
that'd be April 20th this year.
feh: I put up code I've been poring over for days, then next day
find a shorter way:
(my ref: minease7, anyone following this should name it mineast2 if
using the batch below)