Skip to content

Commit

Permalink
01.23.09
Browse files Browse the repository at this point in the history
  • Loading branch information
ToninoTarsi committed Nov 18, 2015
1 parent ade00ee commit 0ce748d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
01.23.07
01.23.09
4 changes: 2 additions & 2 deletions sun.py
Expand Up @@ -29,9 +29,9 @@ def daylight(self):
time_sunrise = timedelta(hours=sunrise.hour, minutes=sunrise.minute, seconds=sunrise.second)
time_sunset = timedelta(hours=sunset.hour, minutes=sunset.minute, seconds=sunset.second)
time_now = timedelta(hours=datetime.now().hour, minutes=datetime.now().minute, seconds=datetime.now().second)
if ( ( time_now - time_sunrise ).total_seconds() < -3600 ):
if ( ( time_now - time_sunrise ).total_seconds() < -2700 ):
return False
if ( ( time_now - time_sunset ).total_seconds() > 3600 ):
if ( ( time_now - time_sunset ).total_seconds() > 2700 ):
return False
return True

Expand Down

0 comments on commit 0ce748d

Please sign in to comment.