Use the -p option to print just the phase as a percentage.
Use the arguments -d and -t to specify a specific date and time for which the phase of the moon has to be calculated. If -d but not -t has been specified, it will calculate the phase of the moon on that day at midnight.
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.