Open this example in the interactive library
Live preview
Source code
// components/LongitudeLocalSolarOffset.tsx
export default function LongitudeLocalSolarOffset({
lon = -79.38,
}: { lon?: number } = {}) {
return <output>Mean solar offset from UTC: {Math.round(lon * 4)} minutes</output>;
}
