From 0cb21928bbd711daeefe15e416426ae4f519f194 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Tue, 14 Sep 2004 19:30:50 +0000 Subject: [PATCH] document date_sunset() and date_sunrise() + examples git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168589 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/datetime/functions/date-sunrise.xml | 74 ++++++++++++++++++- reference/datetime/functions/date-sunset.xml | 74 ++++++++++++++++++- 2 files changed, 142 insertions(+), 6 deletions(-) diff --git a/reference/datetime/functions/date-sunrise.xml b/reference/datetime/functions/date-sunrise.xml index 5a9a6d362d..4dc27fb33c 100644 --- a/reference/datetime/functions/date-sunrise.xml +++ b/reference/datetime/functions/date-sunrise.xml @@ -1,5 +1,5 @@ - + date_sunrise @@ -11,16 +11,84 @@ Description mixeddate_sunrise - mixedtime + inttimestamp intformat floatlatitude floatlongitude floatzenith floatgmt_offset + + date_sunrise returns the sunrise time for a given + day (specified as a timestamp) and location. The + latitude, longitude and + zenith parameters default to the + date.default_latitude, + date.default_longitude and + date.sunrise_zenith configuration options, + respectively. + + + The latitude defaults to North. So, if you want to + specify a South value, you must pass a negavite value. The same note + applies to longitude, which defaults to East. + + + The gmt_offset parameter is specified in hours. + + + <parameter>format</parameter> constants + + + + constant + description + example + + + + + SUNFUNCS_RET_STRING + returns the sunset time as string + 16:46 + + + SUNFUNCS_RET_DOUBLE + returns the result as float + 16.78243132 + + + SUNFUNCS_RET_TIMESTAMP + returns the sunset time as an integer (timestamp) + 1095034606 + + + +
+ + + <function>date_sunrise</function> example + + +]]> + + + + + See also date_sunset. +
diff --git a/reference/datetime/functions/date-sunset.xml b/reference/datetime/functions/date-sunset.xml index 3b0483c1c5..235c1e34bf 100644 --- a/reference/datetime/functions/date-sunset.xml +++ b/reference/datetime/functions/date-sunset.xml @@ -1,5 +1,5 @@ - + date_sunset @@ -11,16 +11,84 @@ Description mixeddate_sunset - mixedtime + inttimestamp intformat floatlatitude floatlongitude floatzenith floatgmt_offset + + date_sunset returns the sunset time for a given day + (specified as a timestamp) and location. The + latitude, longitude and + zenith parameters default to the + date.default_latitude, + date.default_longitude and + date.sunset_zenith configuration options, + respectively. + + + The latitude defaults to North. So, if you want to + specify a South value, you must pass a negavite value. The same note + applies to longitude, which defaults to East. + + + The gmt_offset parameter is specified in hours. + + + <parameter>format</parameter> constants + + + + constant + description + example + + + + + SUNFUNCS_RET_STRING + returns the sunset time as string + 16:46 + + + SUNFUNCS_RET_DOUBLE + returns the result as float + 16.78243132 + + + SUNFUNCS_RET_TIMESTAMP + returns the sunset time as an integer (timestamp) + 1095034606 + + + +
+ + + <function>date_sunset</function> example + + +]]> + + + + + See also date_sunrise. +