From 59279be2e414cd220c0a43035f8c9f3e75eb0477 Mon Sep 17 00:00:00 2001 From: Kaine Date: Thu, 9 Sep 2021 17:20:20 +1200 Subject: [PATCH] Improved usage documentation --- docs/usage.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index 471b0cf..ae53a7f 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -6,13 +6,15 @@ To use Python Lunar in a project:: >>> import pylunar -Location: Boston, MA, USA +Get moon info by entering the location using DMS coordinates. +Example: Location - Wellington, New Zealand >>> mi = pylunar.MoonInfo((42, 21, 30), (-71, 3, 35)) Local Time: July 18, 2016 at 21:45 -API requires UTC, so add 4 hours since on Daylight Savings (changes day) +API requires UTC, so adjust local timezone to utc. +Example: adds 4 hours since Daylight Savings (changes day) >>> mi.update((2016, 7, 19, 1, 45, 0)) >>> mi.age()