mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Whitespace cleanup before further reworking.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298355 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a790488fa1
commit
7896516687
10 changed files with 17 additions and 17 deletions
|
@ -61,7 +61,6 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$date = new DateTime("18-July-2008 16:30:30");
|
||||
echo $date->format("d-m-Y H:i:s").'<br />';
|
||||
|
||||
|
@ -79,7 +78,6 @@ echo '<br />'.$date->format("d-m-Y").' : 5 Days, 5 Months, 5 Years';
|
|||
|
||||
date_add($date, new DateInterval("P5YT5H"));
|
||||
echo '<br />'.$date->format("d-m-Y H:i:s").' : 5 Years, 5 Hours';
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
is <literal>!</literal>, then all portions of the date/time
|
||||
value generated which are not specified in
|
||||
<parameter>time</parameter> will be initialized to corresponding
|
||||
values from the Unix epoch.
|
||||
values from the Unix epoch.
|
||||
</para>
|
||||
<para>
|
||||
The Unix epoch is 1970-01-01 00:00:00 UTC.
|
||||
|
|
|
@ -65,12 +65,10 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$datetime1 = new DateTime('2009-10-11');
|
||||
$datetime2 = new DateTime('2009-10-13');
|
||||
$interval = $datetime1->diff($datetime2);
|
||||
echo $interval->format('%R%d days');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -80,12 +78,10 @@ echo $interval->format('%R%d days');
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$datetime1 = new DateTime('2009-10-11');
|
||||
$datetime2 = new DateTime('2009-10-13');
|
||||
$interval = date_diff($datetime1, $datetime2);
|
||||
echo $interval->format('%R%d days');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<refname>DateTime::format</refname>
|
||||
<refpurpose>Returns date formatted according to given format</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -36,7 +36,7 @@
|
|||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<refname>DateTime::getTimezone</refname>
|
||||
<refpurpose>Return time zone relative to given DateTime</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<refname>DateTime::modify</refname>
|
||||
<refpurpose>Alters the timestamp</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -18,7 +19,7 @@
|
|||
<methodparam><type>string</type><parameter>modify</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Alter the timestamp of a DateTime object by incrementing or decrementing in a
|
||||
Alter the timestamp of a DateTime object by incrementing or decrementing in a
|
||||
format accepted by <function>strtotime</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -65,7 +66,7 @@
|
|||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<refname>DateTime::setDate</refname>
|
||||
<refpurpose>Sets the date</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -84,7 +85,7 @@
|
|||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<refname>DateTime::setISODate</refname>
|
||||
<refpurpose>Sets the ISO date</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -22,7 +23,7 @@
|
|||
<methodparam choice="opt"><type>int</type><parameter>day</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Set a date according to the ISO 8601 standard - using weeks and day offsets
|
||||
Set a date according to the ISO 8601 standard - using weeks and day offsets
|
||||
rather than specific dates.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -85,7 +86,7 @@
|
|||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
@ -99,7 +100,7 @@ date_default_timezone_set('Europe/London');
|
|||
$datetime = new DateTime();
|
||||
|
||||
// Offset from start of week 2 (7) = 5
|
||||
$datetime->setISODate(2008, 2, 5); // Day 5 of week 2 of 2008 is the 11th of January.
|
||||
$datetime->setISODate(2008, 2, 5); // Day 5 of week 2 of 2008 is the 11th of January.
|
||||
|
||||
// Offset from start of week 2 (7) = 10
|
||||
$datetime->setISODate(2008, 2, 10); // Day 10 of week 2 of 2008 is the 16th of January.
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<refname>DateTime::setTime</refname>
|
||||
<refpurpose>Sets the time</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -84,7 +85,7 @@
|
|||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<refname>DateTime::setTimezone</refname>
|
||||
<refpurpose>Sets the time zone for the DateTime object</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
|
@ -67,7 +68,7 @@
|
|||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue