 |
|
|
 |
 |
|
hour
The number of the hour.
minute
The number of the minute.
second
The number of seconds past the minute.
month
The number of the month.
day
The number of the day.
year
The number of the year, may be a two or four digit value, with values between 0-69 mapping to 2000-2069 and 70-100 to 1970-2000. On systems where time_t is a 32bit signed integer, as most common today, the valid range for year is somewhere between 1901 and 2038, although this limitation is overcome as of PHP 5.1.0.
is_dst
<?php
echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1997));
echo date("M-d-Y", mktime(0, 0, 0, 13, 1, 1997));
echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 1998));
echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 98));
?>
<?php
$stamp += $hour * (60 * 60);
?>
To:
<?php
$stamp += $hour * (60 * 60) - (date('Z') + (date('I') * 60 * 60));
?>
|
 |
 |
 |
 |
Date :
13 ส.ค. 2550 22:17:03 |
By :
arsachi |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อย่างที่คุณ arsachi บอกครับ
echo date("M-d-Y", mktime(0, 0, 0, 8, 30 + 2, 2007));
เปลี่ยนเป็นตัวแปรเอาเองนะครับ
|
 |
 |
 |
 |
Date :
14 ส.ค. 2550 10:42:08 |
By :
limparty |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|