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.
+
+
+ format 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
+
+
+
+
+
+
+ date_sunrise 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.
+
+
+ format 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
+
+
+
+
+
+
+ date_sunset example
+
+
+]]>
+
+
+
+
+ See also date_sunrise.
+