mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Example altered to not show leading zero.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@247571 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cbbc8d0495
commit
a278f3a9d3
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.41 $ -->
|
||||
<!-- $Revision: 1.42 $ -->
|
||||
<refentry xml:id="function.date" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>date</refname>
|
||||
|
@ -369,8 +369,8 @@ date_default_timezone_set('UTC');
|
|||
// Prints something like: Monday
|
||||
echo date("l");
|
||||
|
||||
// Prints something like: Monday 15th of August 2005 03:12:46 PM
|
||||
echo date('l dS \of F Y h:i:s A');
|
||||
// Prints something like: Monday 8th of August 2005 03:12:46 PM
|
||||
echo date('l jS \of F Y h:i:s A');
|
||||
|
||||
// Prints: July 1, 2000 is on a Saturday
|
||||
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));
|
||||
|
|
Loading…
Reference in a new issue