How to Calculate Daylight Hours with Claude

Calculate daylight hours with Claude and ToolRouter. Day length for any location and date.

Tool
Sunrise Sunset icon
Sunrise Sunset

Claude brings analytical precision to daylight planning by calculating golden hour windows, comparing seasonal variations across locations, and reasoning through how sunrise and sunset times affect your specific use case. Whether you are optimizing a photo shoot schedule, timing an outdoor event for the best light, or estimating solar energy potential across seasons, Claude connects the raw astronomical data to practical decisions through step-by-step analysis that shows its work.

Connect ToolRouter to Claude

1Go to Settings → Connectors → Add custom connector
2Enter the details below and click Add
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Done — works on Claude chat, desktop, and mobile

Steps

Once connected (see setup above), use the Sunrise Sunset tool:

  1. Ask Claude: "Get sunrise and sunset times using sunrise-sunset" with your location
  2. Claude returns times and can calculate total daylight
  3. Ask: "How does this compare to the summer solstice?"

Example Prompt

Try this with Claude using the Sunrise Sunset tool
How many hours of daylight does London get today versus the summer and winter solstices? Show me the comparison.

Tips

  • Ask Claude to compare daylight across multiple cities
  • Track week-over-week changes as seasons shift
  • Useful for SAD awareness and lifestyle planning