DateTimeMath
summary
A small PHP utility fetches NOAA tide stations for Blue Heron Bridge and computes exact entry times to avoid strong currents, using DateTimeImmutable and DateInterval, iterating with DatePeriod. It stores times in UTC, converts to local zone, and prints high-tide events plus 10/30/60-minute pre-entry windows. The implementation handles single-high-tide days and DST quirks, and surfaces a gotcha where a 30-day DatePeriod yields 31 entries. The app is built as a CLI and a web chart and it works for the demonstrated sites.
AI-written summary · about
