Command-line tool for tracking sunrise, sunset, and daylight hours with 10-day projections
daylight is a command-line utility that calculates and displays sunrise, sunset, solar noon times, and day length for any location. The tool automatically detects your location and timezone using IP geolocation, but allows manual override with latitude, longitude, and timezone parameters for offline operation or when traveling.
The tool provides detailed output including current day statistics, changes from the previous day, and a 10-day projection table showing how daylight hours will change over time. It supports both full detailed output and condensed summary modes, with optional JSON formatting for scripting integration. The interface includes visual elements like ASCII charts and colored terminal output that adapts to dark/light terminal backgrounds.
daylight works across Mac, Linux, and Windows platforms and handles edge cases like arctic locations where traditional sunrise/sunset calculations may not apply. The tool is particularly useful for individuals who want to track seasonal daylight changes or need solar timing information for planning outdoor activities.
# via Homebrew
brew tap jbreckmckye/formulae && brew install daylight
# via Binary
Download from releases page and add to PATH
