2
1
Fork
You've already forked moontool
0
Display the current moon phase
  • C 68.5%
  • Lua 23.4%
  • Shell 7.2%
  • Makefile 0.9%
2024年11月19日 00:28:17 -06:00
lua lua code 2024年11月19日 00:28:17 -06:00
src lua code 2024年11月19日 00:28:17 -06:00
test no clang-format, makefile revision, source to src, testing.sh into test/ 2024年07月02日 18:27:07 -05:00
.gitignore timecalc 2024年02月09日 18:02:41 -06:00
LICENSE Optimizations in all files, testing.sh to POSIX 2024年02月07日 00:29:59 -06:00
Makefile no clang-format, makefile revision, source to src, testing.sh into test/ 2024年07月02日 18:27:07 -05:00
README.md remove restrict, table fixed 2024年07月27日 15:11:16 -05:00

Moontool - A modernization and adaptation of '80s astronomical trinkets

The idea came from this, and most of the astronomical code is from the original moontool

mprintf

This one I actually wrote (although, heavily adapted from the original moontool code)

-f formatting specifiers:

| character | definition | example |
|-----------+-----------------------------+-----------------|
| %a | Age (Days since new moon) | 15.20 |
| %e | Emoji (Northern Hemisphere) | 🌘 |
| %s | Emoji (Southern Hemisphere) | 🌒 |
| %J | Julian Day | 2460494.401019 |
| %N | Phase Number | 5 |
| %P | Illuminated Percent | 10% |
| %p | Phase name | New |
| %% | percent sign | % |
| %n | Newline | \n |
| %t | Tab | \t |

phoon

From Here Originally Written by John Walker

phoon is a program to display the PHase of the mOON. Unlike other such programs, phoon shows you the phase First written in Pascal /TOPS-20 at CMU in 1979; Then translated it to Ratfor/Software Tools in 1981; and now it's in C/Unix.

globe

From Here Originally Written by John Walker

timecalc

A simple test of the date parsing stuff, practically a debug tool