←back to thread

79 points jbreckmckye | 1 comments | | HN request time: 0.496s | source

I love the sunlight and dread the long, dark winter evenings of Northern Europe. I often look up sunrise / sunset times and count off the days until the darkness is gone.

Now I've written a terminal app for this (Mac/Linux)

Features: a colorful summary of daylight times for your location; projected change over the coming days; handles NO_COLOR and a ---short flag if you dislike the output format.

The location is IP-based but you can override this if you're on a VPN. Just create a terminal alias with the --loc flag. The app supports areas in the arctic / antarctic circle too.

Check our the repository for a preview and instructions on how you can install it with Homebrew.

(There is a Windows build but it's not yet tested)

Show context
kseistrup ◴[] No.43347100[source]
This is nice, I like it!

Is there a way to make it use 24h time, rather than AM/PM?

replies(1): >>43347153 #
1. kseistrup ◴[] No.43347153[source]
If I use e.g. `daylight --timezone=Europe/Copenhagen` it does actually show the 24h times, which is nice. But til still appends AM/PM, which is kind of weird. :)