Library API
    Preparing search index...

    Interface SolarOffsetOptions

    Configuration options for natural solar time offset calculation.

    interface SolarOffsetOptions {
        apparent?: boolean;
        date?: any;
        precision?: number;
        timeZone?: string;
        unit?: SolarOffsetUnit;
    }
    Index
    apparent?: boolean

    Whether to compute apparent solar time incorporating Equation of Time (default: false for mean solar time)

    date?: any

    Reference date/time for DST offset and Equation of Time calculations (default: Date.now())

    precision?: number

    Number of decimal places to round (default: 2)

    timeZone?: string

    Explicit IANA timezone override (defaults to coords.timezone or ambient timezone)

    Unit of return value (default: 'minutes')