https://github.com/arnavrneo/sunrise-sunset-time-finder
This is a simple Sunrise and Sunset time calculator
https://github.com/arnavrneo/sunrise-sunset-time-finder
calculator python3 time
Last synced: 4 months ago
JSON representation
This is a simple Sunrise and Sunset time calculator
- Host: GitHub
- URL: https://github.com/arnavrneo/sunrise-sunset-time-finder
- Owner: arnavrneo
- Created: 2021-08-07T10:43:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-07T11:46:31.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T08:49:06.431Z (5 months ago)
- Topics: calculator, python3, time
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sunrise-sunset-time-finder
This is a Sunrise and Sunset Time Finder.
It works on the values : Latitude and Longitude provided by the user and uses that to calculate the time of sunset and sunrise(12 or 24hr format) of that place along with the
current time(24h format).It is a simple Python-based program which uses "https://api.sunrise-sunset.org/json" api endpoint to fetch the results.
===IN ORDER TO GET 24HR AND MORE SCIENTIFIC FORMAT FOR SUNRISE AND SUNSET, DO CHANGE THE CODE AS FOLLOWING:===
1. Change FORMATTED to 0.
2. And change this:
sunrise = data["results"]["sunrise"].split("T")[1].split(":")[0]
sunset = data["results"]["sunset"].split("T")[1].split(":")[0]