[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
sander Fri Apr 5 15:18:53 2002 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: Added small note to mktime() Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.69 phpdoc/en/functions/datetime.xml:1.70 --- phpdoc/en/functions/datetime.xml:1.69 Mon Mar 25 03:16:28 2002 +++ phpdoc/en/functions/datetime.xmlFri Apr 5 15:18:53 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.69 $ -- +!-- $Revision: 1.70 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev -731,14 +731,15 to the local date and time. /para para - parameterIs_dst/parameter can be set to 1 if the time is + parameteris_dst/parameter can be set to 1 if the time is during daylight savings time, 0 if it is not, or -1 (the default) if it is unknown whether the time is within daylight savings time - or not. + or not. If it's unknown, PHP tries to figure it out itself. This can + cause unexpected (but not incorrect) results. /para note para - parameterIs_dst/parameter was added in 3.0.10. + parameteris_dst/parameter was added in 3.0.10. /para /note para
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
manuzhaiMon Mar 25 03:16:29 2002 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: Small typo fix. Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.68 phpdoc/en/functions/datetime.xml:1.69 --- phpdoc/en/functions/datetime.xml:1.68 Fri Mar 8 17:52:52 2002 +++ phpdoc/en/functions/datetime.xmlMon Mar 25 03:16:28 2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.68 $ -- +!-- $Revision: 1.69 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev -499,7 +499,7 /para para See also functiondate/function, functionmktime/function, - functiongmmktime/function and functionstrftime/function + functiongmmktime/function and functionstrftime/function. /para /refsect1 /refentry
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jimwMon Feb 11 20:23:53 2002 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: clarify that S is the suffix for the day of the month Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.66 phpdoc/en/functions/datetime.xml:1.67 --- phpdoc/en/functions/datetime.xml:1.66 Sat Feb 2 10:35:56 2002 +++ phpdoc/en/functions/datetime.xmlMon Feb 11 20:23:52 2002 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.66 $ -- +!-- $Revision: 1.67 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -195,8 +195,8 @@ /listitem listitem simpara -S - English ordinal suffix, textual, 2 characters; i.e. th, -nd +S - English ordinal suffix for the day of the month, 2 characters; +i.e. th, nd /simpara /listitem listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
imajes Fri Jan 4 00:58:18 2002 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: changing the strftime example from fr_CA to Fr_FR since it states French, not Canadian. fixes bug http://bugs.php.net/bug.php?id=14742 Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.61 phpdoc/en/functions/datetime.xml:1.62 --- phpdoc/en/functions/datetime.xml:1.61 Tue Jan 1 15:25:20 2002 +++ phpdoc/en/functions/datetime.xmlFri Jan 4 00:58:18 2002 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.61 $ -- +!-- $Revision: 1.62 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -1078,7 +1078,7 @@ print (strftime (%A in Finnish is )); setlocale (LC_TIME, fi_FI); print (strftime (%A, in French )); -setlocale (LC_TIME, fr_CA); +setlocale (LC_TIME, fr_FR); print (strftime (%A and in German )); setlocale (LC_TIME, de_DE); print (strftime (%A.\n));
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jimwTue Jan 1 15:25:20 2002 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: strftime: document %G and %g, refer to it from %V Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.60 phpdoc/en/functions/datetime.xml:1.61 --- phpdoc/en/functions/datetime.xml:1.60 Fri Dec 28 11:45:39 2001 +++ phpdoc/en/functions/datetime.xmlTue Jan 1 15:25:20 2002 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.60 $ -- +!-- $Revision: 1.61 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -908,6 +908,19 @@ /listitem listitem simpara +%g - like %G, but without the century. + /simpara + /listitem + listitem + simpara +%G - The 4-digit year corresponding to the ISO week number (see %V). +This has the same format and value as %Y, except that if the ISO week +number belongs to the previous or next year, that year is used +instead. + /simpara + /listitem + listitem + simpara %h - same as %b /simpara /listitem @@ -999,7 +1012,9 @@ %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with -Monday as the first day of the week. +Monday as the first day of the week. (Use %G or %g for the year +component that corresponds to the week number for the specified +timestamp.) /simpara /listitem listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
drews Fri Dec 28 11:45:39 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: added W-format option Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.59 phpdoc/en/functions/datetime.xml:1.60 --- phpdoc/en/functions/datetime.xml:1.59 Wed Dec 19 09:01:43 2001 +++ phpdoc/en/functions/datetime.xmlFri Dec 28 11:45:39 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.59 $ -- +!-- $Revision: 1.60 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -223,6 +223,12 @@ listitem simpara w - day of the week, numeric, i.e. 0 (Sunday) to 6 +(Saturday) + /simpara + /listitem + listitem + simpara +W - ISO-8601 week number of year, weeks starting on monday (added in PHP +4.1.0) (Saturday) /simpara /listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
hholzgraWed Dec 19 09:01:46 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: added a warning regarding Solaris and strftime(%u) Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.58 phpdoc/en/functions/datetime.xml:1.59 --- phpdoc/en/functions/datetime.xml:1.58 Fri Dec 14 15:59:38 2001 +++ phpdoc/en/functions/datetime.xmlWed Dec 19 09:01:43 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.58 $ -- +!-- $Revision: 1.59 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -973,6 +973,13 @@ %u - weekday as a decimal number [1,7], with 1 representing Monday /simpara + warning +simpara + Sun Solaris seems to start with Sunday as 1 + although ISO 9889:1999 (the current C standard) clearly + specifies that it should be Monday. +/simpara + /warning /listitem listitem simpara
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jimwFri Dec 14 15:59:38 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: strtotime: add last/next examples, document now parameter, add note about timestamp range Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.57 phpdoc/en/functions/datetime.xml:1.58 --- phpdoc/en/functions/datetime.xml:1.57 Wed Dec 12 19:44:47 2001 +++ phpdoc/en/functions/datetime.xmlFri Dec 14 15:59:38 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.57 $ -- +!-- $Revision: 1.58 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -1112,12 +1112,13 @@ /funcprototype /funcsynopsis simpara - The function expects to be given a string containing an English - date format and will try to parse that format into a UNIX - timestamp. Upon failure, literal-1/literal is returned. + The function expects to be given a string containing an English date + format and will try to parse that format into a UNIX timestamp relative + to the timestamp given in parameternow/parameter, or the current time + if none is supplied. Upon failure, literal-1/literal is returned. /simpara simpara - Since functionstrtotime/function behaves according to GNU + Because functionstrtotime/function behaves according to GNU date syntax, have a look at the GNU manual page titled ulink url=url.gnu.man.date-input;Date Input Formats/ulink. Described there is valid syntax for the parametertime/parameter @@ -1128,11 +1129,13 @@ titlefunctionstrtotime/function examples/title programlisting role=php ![CDATA[ -echo strtotime (now) . \n; -echo strtotime (10 September 2000) . \n; -echo strtotime (+1 day) . \n; -echo strtotime (+1 week) . \n; -echo strtotime (+1 week 2 days 4 hours 2 seconds) . \n; +echo strtotime (now), \n; +echo strtotime (10 September 2000), \n; +echo strtotime (+1 day), \n; +echo strtotime (+1 week), \n; +echo strtotime (+1 week 2 days 4 hours 2 seconds), \n; +echo strtotime (next Thursday), \n; +echo strtotime (last Monday), \n; ]] /programlisting /example @@ -1152,6 +1155,14 @@ /programlisting /example /para +note + para + The valid range of a timestamp is typically from Fri, 13 Dec + 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are + the dates that correspond to the minimum and maximum values for + a 32-bit signed integer.) + /para +/note /refsect1 /refentry
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
philip Wed Dec 12 19:44:47 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: strtotime: parameter time behaves according to gnu date syntax, added link to gnu man page. Also, there are a few additional valid inputs, document them at a later date :) Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.56 phpdoc/en/functions/datetime.xml:1.57 --- phpdoc/en/functions/datetime.xml:1.56 Wed Dec 12 15:46:41 2001 +++ phpdoc/en/functions/datetime.xmlWed Dec 12 19:44:47 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.56 $ -- +!-- $Revision: 1.57 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -,10 +,19 @@ /paramdef /funcprototype /funcsynopsis -para +simpara The function expects to be given a string containing an English date format and will try to parse that format into a UNIX timestamp. Upon failure, literal-1/literal is returned. +/simpara +simpara + Since functionstrtotime/function behaves according to GNU + date syntax, have a look at the GNU manual page titled + ulink url=url.gnu.man.date-input;Date Input Formats/ulink. + Described there is valid syntax for the parametertime/parameter + parameter. +/simpara +para example titlefunctionstrtotime/function examples/title programlisting role=php
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jimwFri Dec 7 15:43:00 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: fix checkdate prototype, add some see alsos, and s/english/English/ Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.54 phpdoc/en/functions/datetime.xml:1.55 --- phpdoc/en/functions/datetime.xml:1.54 Wed Nov 21 18:21:30 2001 +++ phpdoc/en/functions/datetime.xmlFri Dec 7 15:43:00 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.54 $ -- +!-- $Revision: 1.55 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -13,7 +13,7 @@ titleDescription/title funcsynopsis funcprototype - funcdefint functioncheckdate/function/funcdef + funcdefbool functioncheckdate/function/funcdef paramdefint parametermonth/parameter/paramdef paramdefint parameterday/parameter/paramdef paramdefint parameteryear/parameter/paramdef @@ -43,6 +43,9 @@ /listitem /itemizedlist /para +para + See also functionmktime/function and functionstrtotime/function. +/para /refsect1 /refentry @@ -1093,7 +1096,7 @@ refnamediv refnamestrtotime/refname refpurpose - Parse about any english textual datetime description into a UNIX + Parse about any English textual datetime description into a UNIX timestamp /refpurpose /refnamediv @@ -1109,7 +1112,7 @@ /funcprototype /funcsynopsis para - The function expects to be given a string containing an english + The function expects to be given a string containing an English date format and will try to parse that format into a UNIX timestamp. Upon failure, literal-1/literal is returned. example
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
philip Wed Nov 21 18:21:31 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: strtotime() returns -1 upon failure, added another example too. Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.53 phpdoc/en/functions/datetime.xml:1.54 --- phpdoc/en/functions/datetime.xml:1.53 Mon Nov 19 08:56:00 2001 +++ phpdoc/en/functions/datetime.xmlWed Nov 21 18:21:30 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.53 $ -- +!-- $Revision: 1.54 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -,7 +,7 @@ para The function expects to be given a string containing an english date format and will try to parse that format into a UNIX - timestamp. + timestamp. Upon failure, literal-1/literal is returned. example titlefunctionstrtotime/function examples/title programlisting role=php @@ -1121,6 +1121,21 @@ echo strtotime (+1 day) . \n; echo strtotime (+1 week) . \n; echo strtotime (+1 week 2 days 4 hours 2 seconds) . \n; +]] + /programlisting + /example +/para +para + example + titleChecking for failure/title + programlisting role=php +![CDATA[ +$str = 'Not Good'; +if (($timestamp = strtotime($str)) === -1) { +echo The string ($str) is bogus; +} else { +echo $str == . date('l dS of F Y h:i:s A',$timestamp); +} ]] /programlisting /example
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
hholzgraMon Nov 19 08:56:00 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: clarification on tm_month being zero-based Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.52 phpdoc/en/functions/datetime.xml:1.53 --- phpdoc/en/functions/datetime.xml:1.52 Sat Nov 17 22:07:17 2001 +++ phpdoc/en/functions/datetime.xmlMon Nov 19 08:56:00 2001 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.52 $ -- +!-- $Revision: 1.53 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -638,7 +638,7 @@ /listitem listitem simpara -tm_mon - month of the year +tm_mon - month of the year, starting with 0 for january /simpara /listitem listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
ssb Wed Aug 15 03:28:28 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: * added see also strftime to date and gmdate docs Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.44 phpdoc/en/functions/datetime.xml:1.45 --- phpdoc/en/functions/datetime.xml:1.44 Thu Aug 2 13:36:54 2001 +++ phpdoc/en/functions/datetime.xmlWed Aug 15 03:28:28 2001 @@ -1,4 +1,4 @@ -!-- $Revision: 1.44 $ -- +!-- $Revision: 1.45 $ -- reference id=ref.datetime titleDate and Time functions/title titleabbrevDate/time/titleabbrev @@ -284,8 +284,8 @@ functions. /para para - See also functiongmdate/function and - functionmktime/function. + See also functiongmdate/function, + functionmktime/function and functionstrftime/function. /para /refsect1 /refentry @@ -452,7 +452,7 @@ /para para See also functiondate/function, functionmktime/function, - and functiongmmktime/function. + functiongmmktime/function and functionstrftime/function /para /refsect1 /refentry
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
tom Fri Jul 20 14:19:21 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: Changed date() example (bug12253) Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.42 phpdoc/en/functions/datetime.xml:1.43 --- phpdoc/en/functions/datetime.xml:1.42 Sat Jul 7 14:42:23 2001 +++ phpdoc/en/functions/datetime.xmlFri Jul 20 14:19:21 2001 @@ -267,7 +267,7 @@ /* Today is March 10th, 2001, 5:16:18 pm */ $today = date(F j, Y, g:i a); // March 10, 2001, 5:16 pm $today = date(m.d.y); // 03.10.01 -$today = date(j, g, Y); // 10, 3, 2001 +$today = date(j, m, Y); // 10, 3, 2001 $today = date(Ymd); // 20010310 $today = date('h-i-s, j-m-y, it is w Day z '); // 05-16-17, 10-03-01, 1631 1618 6 Fripm01 $today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day.
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
damsMon Apr 23 11:17:48 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: adding details to wday Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.37 phpdoc/en/functions/datetime.xml:1.38 --- phpdoc/en/functions/datetime.xml:1.37 Tue Apr 17 08:03:11 2001 +++ phpdoc/en/functions/datetime.xmlMon Apr 23 11:17:48 2001 @@ -332,7 +332,7 @@ /listitem listitem simpara - wday - day of the week, numeric + wday - day of the week, numeric : from 0 as Sunday upt to 6 as Saturday /simpara /listitem listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
damsMon Apr 23 13:38:59 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: upt - up Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.38 phpdoc/en/functions/datetime.xml:1.39 --- phpdoc/en/functions/datetime.xml:1.38 Mon Apr 23 11:17:48 2001 +++ phpdoc/en/functions/datetime.xmlMon Apr 23 13:38:59 2001 @@ -332,7 +332,7 @@ /listitem listitem simpara - wday - day of the week, numeric : from 0 as Sunday upt to 6 as Saturday + wday - day of the week, numeric : from 0 as Sunday up to 6 as Saturday /simpara /listitem listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
danbeck Fri Apr 6 22:30:19 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: corrected doc bug #9988 Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.35 phpdoc/en/functions/datetime.xml:1.36 --- phpdoc/en/functions/datetime.xml:1.35 Mon Mar 19 16:57:21 2001 +++ phpdoc/en/functions/datetime.xmlFri Apr 6 22:30:19 2001 @@ -271,7 +271,7 @@ $today = date("Ymd"); // 20010310 $today = date('h-i-s, j-m-y, it is w Day z '); // 05-16-17, 10-03-01, 1631 1618 6 Fripm01 $today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day. -$today = date("D M j g:i:s T Y"); // Sat Mar 10 15:16:08 MST 2001 +$today = date("D M j G:i:s T Y"); // Sat Mar 10 15:16:08 MST 2001 $today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:17 m is month $today = date("H:i:s"); // 17:16:17 /programlisting
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jmcastagnetto Sat Mar 17 17:37:02 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: Fixed error in microtime example Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.33 phpdoc/en/functions/datetime.xml:1.34 --- phpdoc/en/functions/datetime.xml:1.33 Fri Mar 16 21:37:52 2001 +++ phpdoc/en/functions/datetime.xmlSat Mar 17 17:37:02 2001 @@ -637,7 +637,7 @@ programlisting role="php" function getmicrotime(){ list($sec, $usec) = explode(" ",microtime()); -return ($sec + $usec); +return ((float)$usec + (float)$sec); } $time_start = getmicrotime();
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jmcastagnetto Fri Mar 16 21:37:52 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: comment on option "r" which was added in PHP 4.0.4 Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.32 phpdoc/en/functions/datetime.xml:1.33 --- phpdoc/en/functions/datetime.xml:1.32 Mon Mar 12 06:00:50 2001 +++ phpdoc/en/functions/datetime.xmlFri Mar 16 21:37:52 2001 @@ -167,6 +167,7 @@ listitem simpara r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" +(added in PHP 4.0.4) /simpara /listitem listitem
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml zlib.xml /en/pear standards.xml
jkj Mon Mar 12 06:00:51 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml zlib.xml /phpdoc/en/pear standards.xml Log: - corrected XML related typos (, , unterminated entity references, ...) Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.31 phpdoc/en/functions/datetime.xml:1.32 --- phpdoc/en/functions/datetime.xml:1.31 Sat Mar 10 15:32:57 2001 +++ phpdoc/en/functions/datetime.xmlMon Mar 12 06:00:50 2001 @@ -641,7 +641,7 @@ $time_start = getmicrotime(); -for ($i=0; $i 1000; $i++){ +for ($i=0; $i lt; 1000; $i++){ //do nothing, 1000 times } Index: phpdoc/en/functions/zlib.xml diff -u phpdoc/en/functions/zlib.xml:1.12 phpdoc/en/functions/zlib.xml:1.13 --- phpdoc/en/functions/zlib.xml:1.12 Wed Mar 7 02:40:44 2001 +++ phpdoc/en/functions/zlib.xmlMon Mar 12 06:00:50 2001 @@ -797,7 +797,7 @@ /para para For more information on the GZIP file format, see the document: - ulink url="url.rfc1952"GZIP file format specification + ulink url="url.rfc1952;"GZIP file format specification version 4.3/ulink (RFC 1952). /para para Index: phpdoc/en/pear/standards.xml diff -u phpdoc/en/pear/standards.xml:1.2 phpdoc/en/pear/standards.xml:1.3 --- phpdoc/en/pear/standards.xml:1.2Sat Mar 10 21:57:42 2001 +++ phpdoc/en/pear/standards.xmlMon Mar 12 06:00:51 2001 @@ -32,7 +32,7 @@ programlisting role="php" if ((condition1) || (condition2)) { action1; -} elseif ((condition3) (condition4)) { +} elseif ((condition3) amp;amp; (condition4)) { action2; } else { defaultaction; @@ -113,10 +113,10 @@ Always attempt to return a meaningful value from a function if one is appropriate. Here is a slightly longer example: programlisting role="php" -function connect($dsn, $persistent = false) +function connect(amp;$dsn, $persistent = false) { if (is_array($dsn)) { -$dsninfo = $dsn; +$dsninfo = amp;$dsn; } else { $dsninfo = DB::parseDSN($dsn); }
[PHP-DOC] cvs: phpdoc /en/functions datetime.xml
jimwMon Jan 22 19:25:46 2001 EDT Modified files: /phpdoc/en/functionsdatetime.xml Log: note that we use the c library's strftime, which may not support all the specifiers Index: phpdoc/en/functions/datetime.xml diff -u phpdoc/en/functions/datetime.xml:1.29 phpdoc/en/functions/datetime.xml:1.30 --- phpdoc/en/functions/datetime.xml:1.29 Wed Jan 17 13:36:25 2001 +++ phpdoc/en/functions/datetime.xmlMon Jan 22 19:25:46 2001 @@ -908,6 +908,13 @@ /simpara /listitem /itemizedlist + note + para + Not all conversion specifiers may be supported by your C + library, in which case they will not be supported by PHP's + functionstrftime/function. + /para + /note example titlefunctionStrftime/function example/title programlisting role="php"