wbreeze / ShipsClock

An iOS, SwiftUI clock for tracking watches on board a ship. Marks the day in periods of four hours.
https://wbreeze.github.io/ShipsClock
Apache License 2.0
2 stars 0 forks source link

Add an option to show apparent solar time #26

Open wbreeze opened 3 years ago

wbreeze commented 3 years ago

The clock currently shows system time. Add an option to show apparent solar time. This is the time that puts the sun on the local meridian at noon. It bases time on the hour angle of the sun.

This requires location. Fall back on system time when location is unavailable. Make the option selectable only if location is available.

Depends on #24

wbreeze commented 3 years ago

Of course the sun glyph already indicates this time. With this setting, the hour hand will always point at the sun on the dial.

wbreeze commented 3 years ago

See definition of apparent solar time at https://en.m.wikipedia.org/wiki/Solar_time.