daylight
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.
Installation
# via Homebrew
brew tap jbreckmckye/formulae && brew install daylight
# via Binary
Download from releases page and add to PATH

Alternatives & related tools
asak
Terminal audio tool for browsing, playing, and recording audio files with waveform visualization and device selection
caps-log
Terminal-based journaling tool that saves daily entries as Markdown files with calendar navigation and tag organization
omm
Keyboard-driven task manager for the command line with priority reordering and context management
bmm
Command-line bookmark manager with local storage, search capabilities, and both CLI and TUI interfaces
scli
Terminal user interface for Signal messaging with Vim-like navigation and external editor support
add a badge to your README
Maintain daylight? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/daylight?utm_source=badge)<a href="https://www.trmn.sh/tools/daylight?utm_source=badge"><img src="https://www.trmn.sh/badge/daylight.svg" alt="Featured on trmn" height="20"></a>