Skip to content

ryansmolik03/SunsetSunriseTime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

SunsetSunriseTime

Simple Python code that outputs the local sunset and sunrise time at your location on a given date.

Usage

Running

  1. Open up a terminal and navigate to the directory the file is saved in.
  2. Then call: python3 SunsetSunriseData.py.
  3. You'll be prompted for a location and a date.
  4. Your sunrise and sunset times will be outputed in the terminal.

How It Works

  1. The user inputs a location and date.
  2. The Geocode API translates the location to a latitude and longitude.
  3. These latitude and longitude coordinates along with the date are used to determine the sunrise/sunset times.
  4. The Timezone API also uses latitude, longitude, and date to determine the location's timezone.
  5. Finally, the times are converted from UTC to local time and outputed to the console.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages