bjori Wed Oct 25 12:35:16 2006 UTC
Modified files:
/php-src/ext/date php_date.c
Log:
Add oneliner descriptions
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.123&r2=1.124&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.123 php-src/ext/date/php_date.c:1.124
--- php-src/ext/date/php_date.c:1.123 Sun Oct 8 13:34:21 2006
+++ php-src/ext/date/php_date.c Wed Oct 25 12:35:16 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.123 2006/10/08 13:34:21 bjori Exp $ */
+/* $Id: php_date.c,v 1.124 2006/10/25 12:35:16 bjori Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -1781,6 +1781,7 @@
}
/* {{{ proto DateTime date_create([string time[, DateTimeZone object]])
+ Returns new DateTime object
*/
PHP_FUNCTION(date_create)
{
@@ -1798,6 +1799,7 @@
/* }}} */
/* {{{ proto DateTime::__construct([string time[, DateTimeZone object]])
+ Creates new DateTime object
*/
PHP_METHOD(DateTime, __construct)
{
@@ -1814,6 +1816,7 @@
/* }}} */
/* {{{ proto array date_parse(string date)
+ Returns associative array with detailed info about given date
*/
PHP_FUNCTION(date_parse)
{
@@ -1912,6 +1915,7 @@
/* }}} */
/* {{{ proto string date_format(DateTime object, string format)
+ Returns date formatted according to given format
*/
PHP_FUNCTION(date_format)
{
@@ -1958,6 +1962,7 @@
/* }}} */
/* {{{ proto void date_modify(DateTime object, string modify)
+ Alters the timestamp.
*/
PHP_FUNCTION(date_modify)
{
@@ -1992,6 +1997,7 @@
/* }}} */
/* {{{ proto DateTimeZone date_timezone_get(DateTime object)
+ Return new DateTimeZone object relative to give DateTime
*/
PHP_FUNCTION(date_timezone_get)
{
@@ -2015,6 +2021,7 @@
/* }}} */
/* {{{ proto void date_timezone_set(DateTime object, DateTimeZone object)
+ Sets the timezone for the DateTime object.
*/
PHP_FUNCTION(date_timezone_set)
{
@@ -2038,6 +2045,7 @@
/* }}} */
/* {{{ proto long date_offset_get(DateTime object)
+ Returns the DST offset.
*/
PHP_FUNCTION(date_offset_get)
{
@@ -2062,6 +2070,7 @@
/* }}} */
/* {{{ proto void date_time_set(DateTime object, long hour, long minute[, long
second])
+ Sets the time.
*/
PHP_FUNCTION(date_time_set)
{
@@ -2082,6 +2091,7 @@
/* }}} */
/* {{{ proto void date_date_set(DateTime object, long year, long month, long
day)
+ Sets the date.
*/
PHP_FUNCTION(date_date_set)
{
@@ -2102,6 +2112,7 @@
/* }}} */
/* {{{ proto void date_isodate_set(DateTime object, long year, long week[,
long day])
+ Sets the ISO date.
*/
PHP_FUNCTION(date_isodate_set)
{
@@ -2145,6 +2156,7 @@
}
/* {{{ proto DateTimeZone timezone_open(string timezone)
+ Returns new DateTimeZone object
*/
PHP_FUNCTION(timezone_open)
{
@@ -2163,6 +2175,7 @@
/* }}} */
/* {{{ proto DateTimeZone::__construct(string timezone)
+ Creates new DateTimeZone object.
*/
PHP_METHOD(DateTimeZone, __construct)
{
@@ -2181,6 +2194,7 @@
/* }}} */
/* {{{ proto string timezone_name_get(DateTimeZone object)
+ Returns the name of the timezone.
*/
PHP_FUNCTION(timezone_name_get)
{
@@ -2198,6 +2212,7 @@
/* }}} */
/* {{{ proto string timezone_name_from_abbr(string abbr[, long gmtOffset[,
long isdst]])
+ Returns the timezone name from abbrevation
*/
PHP_FUNCTION(timezone_name_from_abbr)
{
@@ -2221,6 +2236,7 @@
/* }}} */
/* {{{ proto long timezone_offset_get(DateTimeZone object, DateTime object)
+ Returns the timezone offset.
*/
PHP_FUNCTION(timezone_offset_get)
{
@@ -2244,6 +2260,7 @@
/* }}} */
/* {{{ proto array timezone_transitions_get(DateTimeZone object)
+ Returns numeracilly indexed array containing associative array for all
transitions for the timezone.
*/
PHP_FUNCTION(timezone_transitions_get)
{
@@ -2273,6 +2290,7 @@
/* }}} */
/* {{{ proto array timezone_identifiers_list()
+ Returns numerically index array with all timezone identifiers.
*/
PHP_FUNCTION(timezone_identifiers_list)
{
@@ -2292,7 +2310,8 @@
}
/* }}} */
-/* proto {{{ array timezone_abbreviations_list()
+/* {{{ proto array timezone_abbreviations_list()
+ Returns associative array containing dst, offset and the timezone name
*/
PHP_FUNCTION(timezone_abbreviations_list)
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php