mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
improve example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@256017 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2e69c3a1e6
commit
7f28ef2933
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry xml:id="dateformatter.parse" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>DateFormatter::parse</refname>
|
||||
|
@ -99,9 +99,9 @@ echo "Second parsed output is ".$fmt->parse("Mittwoch, 31. Dezember 1969 16:00 U
|
|||
<![CDATA[
|
||||
<?php
|
||||
$fmt = datefmt_create( "en_US" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN );
|
||||
echo "First parsed output is ".datefmt_parse( $fmt , "Wednesday, December 31, 1969 4:00:00 PM PT");
|
||||
echo "First parsed output is ".datefmt_parse( $fmt , "Wednesday, December 20, 1989 4:00:00 PM PT");
|
||||
$fmt = datefmt_create( "de-DE" ,DateFormatter::FULL,DateFormatter::FULL,'America/Los_Angeles',DateFormatter::GREGORIAN );
|
||||
echo "Second parsed output is ".datefmt_parse( $fmt , "Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00");
|
||||
echo "Second parsed output is ".datefmt_parse( $fmt , "Mittwoch, 20. Dezember 1989 16:00 Uhr GMT-08:00");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -109,8 +109,8 @@ echo "Second parsed output is ".datefmt_parse( $fmt , "Mittwoch, 31. Dezember 19
|
|||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
First parsed output is 0
|
||||
Second parsed output is 0
|
||||
First parsed output is 630201600
|
||||
Second parsed output is 630201600
|
||||
]]>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue