mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
strftime: document %G and %g, refer to it from %V
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66624 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e0250e98e1
commit
b34dca461d
1 changed files with 17 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.60 $ -->
|
||||
<!-- $Revision: 1.61 $ -->
|
||||
<reference id="ref.datetime">
|
||||
<title>Date and Time functions</title>
|
||||
<titleabbrev>Date/time</titleabbrev>
|
||||
|
@ -906,6 +906,19 @@ echo strftime ("Last day in Feb 2000 is: %d", $lastday);
|
|||
preceded by a space (range ' 1' to '31')
|
||||
</simpara>
|
||||
</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
|
||||
|
@ -999,7 +1012,9 @@ echo strftime ("Last day in Feb 2000 is: %d", $lastday);
|
|||
%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>
|
||||
|
|
Loading…
Reference in a new issue