Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4aae38

Browse files
committed
astronomy: Transpose definition of twilight start and end.
1 parent f9107de commit b4aae38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

astronomy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ instance.
140140
* `sunset(variant: int = 0)`
141141
* `moonrise(variant: int = 0)`
142142
* `moonset(variant: int = 0)`
143-
* `tstart(variant: int = 0)` Twilight start
144-
* `tend(variant: int = 0)` Twilight end
143+
* `tstart(variant: int = 0)` Twilight start, Sun about to rise.
144+
* `tend(variant: int = 0)` Twilight end, (Sun has set).
145145
* `is_up(sun: bool)-> bool` Returns `True` if the selected object is above the
146146
horizon.
147147
* `has_risen(sun: bool)->bool` Returns `True` if the selected object has risen.

astronomy/sun_moon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ def moonrise(self, variant: int = 0):
249249
def moonset(self, variant: int = 0):
250250
return self._format(self._times[3], variant)
251251

252-
def tend(self, variant: int = 0):
252+
def tstart(self, variant: int = 0):
253253
return self._format(self._times[4], variant)
254254

255-
def tstart(self, variant: int = 0):
255+
def tend(self, variant: int = 0):
256256
return self._format(self._times[5], variant)
257257

258258
def moonphase(self) -> float:

0 commit comments

Comments
 (0)