php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
astro.h File Reference

Go to the source code of this file.

Macros

#define day_length(year, month, day, lon, lat)
 
#define day_civil_twilight_length(year, month, day, lon, lat)
 
#define day_nautical_twilight_length(year, month, day, lon, lat)
 
#define day_astronomical_twilight_length(year, month, day, lon, lat)
 
#define timelib_astro_sun_rise_set(ts, lon, lat, hrise, hset, rise, set)
 
#define civil_twilight(ts, lon, lat, start, end)
 
#define nautical_twilight(ts, lon, lat, start, end)
 
#define astronomical_twilight(ts, lon, lat, start, end)
 

Macro Definition Documentation

◆ astronomical_twilight

#define astronomical_twilight ( ts,
lon,
lat,
start,
end )
Value:
timelib_astro_rise_set_altitude( ts, lon, lat, -18.0, 0, start, end )
int timelib_astro_rise_set_altitude(timelib_time *t_loc, double lon, double lat, double altit, int upper_limb, double *h_rise, double *h_set, timelib_sll *ts_rise, timelib_sll *ts_set, timelib_sll *ts_transit)
Definition astro.c:212
buf start
Definition ffi.c:4687
unsigned const char * end
Definition php_ffi.h:51

Definition at line 73 of file astro.h.

◆ civil_twilight

#define civil_twilight ( ts,
lon,
lat,
start,
end )
Value:
timelib_astro_rise_set_altitude( ts, lon, lat, -6.0, 0, start, end )

Definition at line 61 of file astro.h.

◆ day_astronomical_twilight_length

#define day_astronomical_twilight_length ( year,
month,
day,
lon,
lat )
Value:
__daylen__( year, month, day, lon, lat, -18.0, 0 )

Definition at line 47 of file astro.h.

◆ day_civil_twilight_length

#define day_civil_twilight_length ( year,
month,
day,
lon,
lat )
Value:
__daylen__( year, month, day, lon, lat, -6.0, 0 )

Definition at line 35 of file astro.h.

◆ day_length

#define day_length ( year,
month,
day,
lon,
lat )
Value:
__daylen__( year, month, day, lon, lat, -35.0/60.0, 1 )

Definition at line 29 of file astro.h.

◆ day_nautical_twilight_length

#define day_nautical_twilight_length ( year,
month,
day,
lon,
lat )
Value:
__daylen__( year, month, day, lon, lat, -12.0, 0 )

Definition at line 41 of file astro.h.

◆ nautical_twilight

#define nautical_twilight ( ts,
lon,
lat,
start,
end )
Value:
timelib_astro_rise_set_altitude( ts, lon, lat, -12.0, 0, start, end )

Definition at line 67 of file astro.h.

◆ timelib_astro_sun_rise_set

#define timelib_astro_sun_rise_set ( ts,
lon,
lat,
hrise,
hset,
rise,
set )
Value:
timelib_astro_rise_set_altitude( ts, lon, lat, -35.0/60.0, 1, hrise, hset, rise, set )

Definition at line 55 of file astro.h.