php man page for date_sun_info

Query: date_sun_info

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DATE_SUN_INFO(3)							 1							  DATE_SUN_INFO(3)

date_sun_info - Returns an array with information about sunset/sunrise and twilight begin/end

SYNOPSIS
array date_sun_info (int $time, float $latitude, float $longitude)
DESCRIPTION
PARAMETERS
o $time - Timestamp. o $latitude - Latitude in degrees. o $longitude - Longitude in degrees.
RETURN VALUES
Returns array on success or FALSE on failure.
EXAMPLES
Example #1 A date_sun_info(3) example <?php $sun_info = date_sun_info(strtotime("2006-12-12"), 31.7667, 35.2333); foreach ($sun_info as $key => $val) { echo "$key: " . date("H:i:s", $val) . " "; } ?> The above example will output: sunrise: 05:52:11 sunset: 15:41:21 transit: 10:46:46 civil_twilight_begin: 05:24:08 civil_twilight_end: 16:09:24 nautical_twilight_begin: 04:52:25 nautical_twilight_end: 16:41:06 astronomical_twilight_begin: 04:21:32 astronomical_twilight_end: 17:12:00
SEE ALSO
date_sunrise(3), date_sunset(3). PHP Documentation Group DATE_SUN_INFO(3)
Related Man Pages
rsort(3) - php
arsort(3) - php
each(3) - php
geoip_record_by_name(3) - php
ifx_fieldproperties(3) - php
Similar Topics in the Unix Linux Community
customising the output
Remind 3.1.4 (Default branch)
Remind 3.1.5 (Default branch)
remove a colon and number and leaving the rest
Remind 3.1.6 (Default branch)