diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2005-10-14 10:12:26 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2005-10-14 10:12:26 +0000 |
commit | 9d6162ed1daf78c9601a7e1f94155bf90e7ea4e5 (patch) | |
tree | b1473145392343c1888f5c11c03d0ac8d2f06c1e /astro/mymoon | |
parent | 7f44731a81d306207aa7dee128a42d3385bb094e (diff) |
Make output nicer by using %02d for time and date fields.
I don't want to scare anybody, but at this moment the moon comes
128 meters per minute closer to the earth.
Notes
Notes:
svn path=/head/; revision=145356
Diffstat (limited to 'astro/mymoon')
-rw-r--r-- | astro/mymoon/files/patch-grapher.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/astro/mymoon/files/patch-grapher.h b/astro/mymoon/files/patch-grapher.h index 0d84ed14adad..b4828f9420b0 100644 --- a/astro/mymoon/files/patch-grapher.h +++ b/astro/mymoon/files/patch-grapher.h @@ -1,5 +1,5 @@ ---- grapher.h.orig Fri Oct 14 19:54:56 2005 -+++ grapher.h Fri Oct 14 19:55:14 2005 +--- grapher.h.orig Wed Jul 16 21:24:46 2003 ++++ grapher.h Fri Oct 14 20:08:52 2005 @@ -13,15 +13,14 @@ for (z=0;z<=progress;z++) {arrow[z]=bar;}for (k=z;k<=max/4;k++) {arrow[k]=empty;} @@ -13,10 +13,10 @@ - Moon->Earth distance: %.3f Km - Distance meter: %s (%d%%) -", -+ "Moon's situation at: %d/%d/%d %d:%d:%d\n" ++ "Moon's situation at: %02d/%02d/%02d %02d:%02d:%02d\n" + "Age: +- %d days\n" -+ "Rise: %d/%d/%d %d:%d:%d\n" -+ "Set: %d/%d/%d %d:%d:%d\n" ++ "Rise: %02d/%02d/%02d %02d:%02d:%02d\n" ++ "Set: %02d/%02d/%02d %02d:%02d:%02d\n" + "Illuminated: %.4f%% \n" + "Moon->Earth distance: %.3f Km\n" + "Distance meter: %s (%d%%)\n" |