# daylight

> Command-line tool for tracking sunrise, sunset, and daylight hours with 10-day projections

Stars: 372 · Categories: Productivity

- Repository: https://github.com/jbreckmckye/daylight
- Page: https://www.trmn.sh/tools/daylight

## Install

- Homebrew: `brew tap jbreckmckye/formulae && brew install daylight`
- Binary: `Download from releases page and add to PATH`

## Overview

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

```bash
# via Homebrew
brew tap jbreckmckye/formulae && brew install daylight
```

```bash
# via Binary
Download from releases page and add to PATH
```

![daylight command output showing sunrise, sunset, and 10-day projection](https://media.trmn.sh/cached/a98eeecd572bf552391c38d40bccf5572505f2cd08cf99bd63fceb268720fde5.png)

## Alternatives

- [asak](https://www.trmn.sh/tools/asak.md): Terminal audio tool for browsing, playing, and recording audio files with waveform visualization and device selection (372 stars)
- [caps-log](https://www.trmn.sh/tools/caps-log.md): Terminal-based journaling tool that saves daily entries as Markdown files with calendar navigation and tag organization (408 stars)
- [omm](https://www.trmn.sh/tools/omm.md): Keyboard-driven task manager for the command line with priority reordering and context management (Go, 334 stars)
- [bmm](https://www.trmn.sh/tools/bmm.md): Command-line bookmark manager with local storage, search capabilities, and both CLI and TUI interfaces (239 stars)
- [scli](https://www.trmn.sh/tools/scli.md): Terminal user interface for Signal messaging with Vim-like navigation and external editor support (Python, 537 stars)

---

Canonical: https://www.trmn.sh/tools/daylight
