Skip to content

Use date.sunrise_zenith or function parameter for date_sun_info #25518

Open

Description

@dmzotov1986

Description

Use date.sunrise_zenith for date_sun_info(). From php.ini. The current built-in value may not be suitable if you want to find the average time of solar escape (90°50'?) or the reliable time of solar escape (90°53'?). Adds flexibility. However, if you add a parameter for this to the signature, you have even more flexibility – you can view both 93° and 40° in one place!

Activity

  1. dmzotov1986 commented on Nov 17, 2026

    @dmzotov1986
    Author

    You could also move timelib_* (from timelib) to the api and prepare for this purpose. Or use jiri.jozif/datesuninfo or league/period or something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions