From 5971fdddb9b4d081b8f1e1efcd11815cc4ec3440 Mon Sep 17 00:00:00 2001 From: jsm Date: Tue, 14 Sep 1999 20:00:07 +0000 Subject: Update pom to the third edition of Duffett-Smith's book, and clean it up somewhat. Change time specification format to similar to that used by date(1) - taking a command line argument in seconds since the Epoch is silly. Date parsing based on code from date(1). Based on work by Paul Janzen for OpenBSD. --- pom/pom.6 | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'pom/pom.6') diff --git a/pom/pom.6 b/pom/pom.6 index 4a4ce04a..42f663d7 100644 --- a/pom/pom.6 +++ b/pom/pom.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: pom.6,v 1.6 1998/06/13 01:09:22 jeremy Exp $ +.\" $NetBSD: pom.6,v 1.7 1999/09/14 20:00:07 jsm Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -33,7 +33,7 @@ .\" .\" @(#)pom.6 8.1 (Berkeley) 5/31/93 .\" -.Dd May 31, 1993 +.Dd January 9, 1999 .Dt POM 6 .Os .Sh NAME @@ -41,7 +41,7 @@ .Nd display the phase of the moon .Sh SYNOPSIS .Nm -.Op Ar secs +.Op [[[[[cc]yy]mm]dd]HH] .Sh DESCRIPTION The .Nm @@ -49,13 +49,25 @@ utility displays the current phase of the moon. Useful for selecting software completion target dates and predicting managerial behavior. .Pp -.Bl -tag -width secs -.It Ar secs -Display the phase of the moon for the date represented by -.Ar secs -seconds past the Epoch -(Midnight, January 1, 1970 GMT). -If -.Ar secs -is unspecified, the current time is used. +.Bl -tag -width [[[[[cc]yy]mm]dd]HH] +.It Ar [[[[[cc]yy]mm]dd]HH] +Display the phase of the moon for a given time. The format is similar to +the canonical representation used by +.Xr date 1 . .El +.Sh SEE ALSO +.Xr date 1 +.Sh AUTHOR +.Nm +was written by Keith E. Brandt. +.Sh BUGS +Times must be within range of the +.Ux +epoch. +.Pp +This program does not allow for the difference between the TDT and +UTC timescales (about one minute at the time of writing). +.Sh ACKNOWLEDGEMENTS +This program is based on algorithms from +.%B Practical Astronomy with Your Calculator, Third Edition +by Peter Duffett-Smith . -- cgit v1.2.3-56-ge451