bjori Fri Nov 3 14:38:45 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/date php_date.c
Log:
MFH: oneliners..
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.31&r2=1.43.2.45.2.32&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.45.2.31
php-src/ext/date/php_date.c:1.43.2.45.2.32
--- php-src/ext/date/php_date.c:1.43.2.45.2.31 Fri Nov 3 14:36:11 2006
+++ php-src/ext/date/php_date.c Fri Nov 3 14:38:45 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.43.2.45.2.31 2006/11/03 14:36:11 bjori Exp $ */
+/* $Id: php_date.c,v 1.43.2.45.2.32 2006/11/03 14:38:45 bjori Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -1653,6 +1653,7 @@
}
/* {{{ proto DateTime date_create([string time[, DateTimeZone object]])
+ Returns new DateTime object
*/
PHP_FUNCTION(date_create)
{
@@ -1670,6 +1671,7 @@
/* }}} */
/* {{{ proto DateTime::__construct([string time[, DateTimeZone object]])
+ Creates new DateTime object
*/
PHP_METHOD(DateTime, __construct)
{
@@ -1686,6 +1688,7 @@
/* }}} */
/* {{{ proto array date_parse(string date)
+ Returns associative array with detailed info about given date
*/
PHP_FUNCTION(date_parse)
{
@@ -1784,6 +1787,7 @@
/* }}} */
/* {{{ proto string date_format(DateTime object, string format)
+ Returns date formatted according to given format
*/
PHP_FUNCTION(date_format)
{
@@ -1802,6 +1806,7 @@
/* }}} */
/* {{{ proto void date_modify(DateTime object, string modify)
+ Alters the timestamp.
*/
PHP_FUNCTION(date_modify)
{
@@ -1836,6 +1841,7 @@
/* }}} */
/* {{{ proto DateTimeZone date_timezone_get(DateTime object)
+ Return new DateTimeZone object relative to give DateTime
*/
PHP_FUNCTION(date_timezone_get)
{
@@ -1859,6 +1865,7 @@
/* }}} */
/* {{{ proto void date_timezone_set(DateTime object, DateTimeZone object)
+ Sets the timezone for the DateTime object.
*/
PHP_FUNCTION(date_timezone_set)
{
@@ -1882,6 +1889,7 @@
/* }}} */
/* {{{ proto long date_offset_get(DateTime object)
+ Returns the DST offset.
*/
PHP_FUNCTION(date_offset_get)
{
@@ -1906,6 +1914,7 @@
/* }}} */
/* {{{ proto void date_time_set(DateTime object, long hour, long minute[, long
second])
+ Sets the time.
*/
PHP_FUNCTION(date_time_set)
{
@@ -1926,6 +1935,7 @@
/* }}} */
/* {{{ proto void date_date_set(DateTime object, long year, long month, long
day)
+ Sets the date.
*/
PHP_FUNCTION(date_date_set)
{
@@ -1946,6 +1956,7 @@
/* }}} */
/* {{{ proto void date_isodate_set(DateTime object, long year, long week[,
long day])
+ Sets the ISO date.
*/
PHP_FUNCTION(date_isodate_set)
{
@@ -1989,6 +2000,7 @@
}
/* {{{ proto DateTimeZone timezone_open(string timezone)
+ Returns new DateTimeZone object
*/
PHP_FUNCTION(timezone_open)
{
@@ -2007,6 +2019,7 @@
/* }}} */
/* {{{ proto DateTimeZone::__construct(string timezone)
+ Creates new DateTimeZone object.
*/
PHP_METHOD(DateTimeZone, __construct)
{
@@ -2025,6 +2038,7 @@
/* }}} */
/* {{{ proto string timezone_name_get(DateTimeZone object)
+ Returns the name of the timezone.
*/
PHP_FUNCTION(timezone_name_get)
{
@@ -2042,6 +2056,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)
{
@@ -2065,6 +2080,7 @@
/* }}} */
/* {{{ proto long timezone_offset_get(DateTimeZone object, DateTime object)
+ Returns the timezone offset.
*/
PHP_FUNCTION(timezone_offset_get)
{
@@ -2088,6 +2104,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)
{
@@ -2117,6 +2134,7 @@
/* }}} */
/* {{{ proto array timezone_identifiers_list()
+ Returns numerically index array with all timezone identifiers.
*/
PHP_FUNCTION(timezone_identifiers_list)
{
@@ -2136,7 +2154,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