Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

date_sun_info(3) [php man page]

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)

Check Out this Related Man Page

WMSUN(1)						      General Commands Manual							  WMSUN(1)

NAME
WMSUN - Dockable WindowMaker SunRise/SunSet App SYNOPSIS
wmSun [-h] [-display <Display>] [-lat <Latitude>] [-lon <Longitude>] [-td <TimeDiff>] [-date <yyyymmdd>] DESCRIPTION
wmSun displays the current day's Sun Rise and Set Times. You must enter your LAtitude and Longitude correctly for it to work. OPTIONS
-h Display list of command-line options. -display <display> Use an alternate X Display. -lat <Latitude> Set latitude of observer. -lon <Longitude> Set longitude of observer. -td <UT - LT> Set the difference beteeen UT and LT. Useful when you want to show the Sunrise/Sunset at a remote lat/lon without resetting your clock. -date <yyyymmdd> Set the date to show sunrise/sunset for. EXAMPLES
wmSun -lon 106.3 -lat 35.9 this would display rise/set times at Los Alamos in local time. wmSun -lat 19.58 -lon 155.92 -td 10 this would display rise/set times in Kona, Hawaii in local time (in winter -- you need to take into account daylight savings at other times of the year). BUGS
Who knows? (Let me know if you find any). AUTHOR
Michael G. Henderson <mghenderson@lanl.gov> 5 January 1999 WMSUN(1)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

customising the output

customising the output if i have entries in my file like 1234 A 3433 A 4343 B 3434 B 7667 C 4343 D can i get the output like A B C D 1234 4343 7667 4343 3433 3434 and also like (3 Replies)
Discussion started by: vasikaran
3 Replies

2. Shell Programming and Scripting

remove a colon and number and leaving the rest

just have a file 1:2333 2:-09393 ]3:45453 4:-09999 5:-09933 6:93939 question is to get output by removing colons as well as number before each colon (in bold) 2333 -09393 45453 -09999 09933 93939 (5 Replies)
Discussion started by: cdfd123
5 Replies