php / php/php-src

date_sun_info restore ability to supply custom zenith value

Aperta
#13,067 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@derickr ci sta già lavorando.

Dal 3/1/2024.

Extension: date Feature Status: Verified
Lingua principale
C
Stelle
40.4k
Fork
8.1k
Merge medio
2g 13h
PR unite (30g)
96

Descrizione

Description

The old functions (date_sunrise and date_sunset, now marked as deprecated) had the option to use a custom zenith. The ability has been lost in the replacement date_sun_info function, only supporting a few, standard, fixed values.

While the supplied standards are useful, it stills has purpose to be able to set a custom value for the zenith, as before.

Could this be added as an optional parameter and return an additional pair of keys in the returned array?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.