<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FDate%2Fgetdate</id>
		<title>PHP/Date/getdate - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FDate%2Fgetdate"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/Date/getdate&amp;action=history"/>
		<updated>2026-04-05T16:12:29Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/Date/getdate&amp;diff=338&amp;oldid=prev</id>
		<title> в 10:37, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/Date/getdate&amp;diff=338&amp;oldid=prev"/>
				<updated>2010-05-26T10:37:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 10:37, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/Date/getdate&amp;diff=339&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/Date/getdate&amp;diff=339&amp;oldid=prev"/>
				<updated>2010-05-26T07:03:29Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Acquiring Date Information with getdate()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Acquiring Date Information with getdate()&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$date_array = getdate(); &lt;br /&gt;
foreach ( $date_array as $key =&amp;gt; $val ) {&lt;br /&gt;
  print &amp;quot;$key = $val&amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
print &amp;quot;Today&amp;quot;s date: &amp;quot;;&lt;br /&gt;
print $date_array[&amp;quot;mon&amp;quot;].&amp;quot;/&amp;quot;.$date_array[&amp;quot;mday&amp;quot;].&amp;quot;/&amp;quot;.$date_array[&amp;quot;year&amp;quot;];&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Finding the month, day, and year==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$a = getdate();&lt;br /&gt;
printf(&amp;quot;%s %d, %d&amp;quot;,$a[&amp;quot;month&amp;quot;],$a[&amp;quot;mday&amp;quot;],$a[&amp;quot;year&amp;quot;]);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==getdate() with a specific timestamp==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$a = getdate(163727100);&lt;br /&gt;
printf(&amp;quot;%s %d, %d&amp;quot;,$a[&amp;quot;month&amp;quot;],$a[&amp;quot;mday&amp;quot;],$a[&amp;quot;year&amp;quot;]);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return array from getdate( )==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Key             Value&lt;br /&gt;
seconds         Seconds&lt;br /&gt;
minutes         Minutes&lt;br /&gt;
hours           Hours&lt;br /&gt;
mday            Day of the month&lt;br /&gt;
wday            Day of the week, numeric (Sunday is 0, Saturday is 6)&lt;br /&gt;
mon             Month, numeric&lt;br /&gt;
year            Year, numeric (4 digits)&lt;br /&gt;
yday            Day of the year, numeric (e.g., 299)&lt;br /&gt;
weekday         Day of the week, textual, full (e.g., &amp;quot;Friday&amp;quot;)&lt;br /&gt;
month           Month, textual, full (e.g., &amp;quot;January&amp;quot;)&lt;br /&gt;
0               Seconds since epoch (what time( ) returns)&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The Associative Array Returned by getdate()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Key         Description                                                  Example&lt;br /&gt;
 &lt;br /&gt;
seconds     Seconds past the minute (0�59)                               28&lt;br /&gt;
 &lt;br /&gt;
minutes     Minutes past the hour (0�59)                                 7&lt;br /&gt;
 &lt;br /&gt;
hours       Hours of the day (0�23)                                      12&lt;br /&gt;
 &lt;br /&gt;
mday        Day of the month (1�31)                                      20&lt;br /&gt;
 &lt;br /&gt;
wday        Day of the week (0�6)                                        4&lt;br /&gt;
 &lt;br /&gt;
mon         Month of the year (1�12)                                     1&lt;br /&gt;
 &lt;br /&gt;
year        Year (four digits)                                           2004&lt;br /&gt;
 &lt;br /&gt;
Yday        Day of year (0�365)                                          19&lt;br /&gt;
 &lt;br /&gt;
weekday     Day of the week (name)                                       Thursday&lt;br /&gt;
 &lt;br /&gt;
month       Month of the year (name)                                     January&lt;br /&gt;
 &lt;br /&gt;
0           Timestamp                                                    948370048&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==To obtain a number corresponding to the day of the week, use getdate() instead:==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
    &lt;br /&gt;
    $ts = strtotime(&amp;quot;04 Jul 2007&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    $gd = getdate($ts); &lt;br /&gt;
    &lt;br /&gt;
    $day = $gd[&amp;quot;wday&amp;quot;];  &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>