ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
609 B

  1. 900 REM JD --> CALENDAR
  2. 905 REM
  3. 910 INPUT "J,F ";J,F
  4. 915 INPUT "JC (0) OR GC (1) ";G
  5. 920 F=F+0.5
  6. 925 IF F<1 THEN 935
  7. 930 F=F-1: J=J+1
  8. 935 IF G=1 THEN 945
  9. 940 A=J: GOTO 955
  10. 945 A1=INT((J/36524.25)-51.12264)
  11. 950 A=J+1+A1-INT(A1/4)
  12. 955 B=A+1524
  13. 960 C=INT((B/365.25)-0.3343)
  14. 965 D=INT(365.25*C)
  15. 970 E=INT((B-D)/30.61)
  16. 975 D=B-D-INT(30.61*E)+F
  17. 980 M=E-1: Y=C-4716
  18. 985 IF E>13.5 THEN M=M-12
  19. 990 IF M<2.5 THEN Y=Y+1
  20. 995 PRINT "DATE: ";Y;M;D
  21. 997 END
  22. 1000 REM ------------------------
  23. 1001 REM APPEARED IN ASTRONOMICAL
  24. 1002 REM COMPUTING, SKY & TELE-
  25. 1003 REM SCOPE, MAY, 1984
  26. 1004 REM ------------------------