|
![](icon/private_name/1.gif) |
12³â Àü |
PHP ¿¡¼ ³¯Â¥°è»ê Á¤¸®
$time = time();
echo date("Y-m-d",strtotime("-1 day", $time))." ÇÏ·ç Àü(¾îÁ¦)";
echo date("Y-m-d",strtotime("-1 day", $time))." ÇÏ·ç Àü(¾îÁ¦)<br>";
echo date("Y-m-d",strtotime("now", $time))." ÇöÀç<br>";
echo date("Y-m-d",strtotime("+1 day", $time))." ÇÏ·ç ÈÄ(³»ÀÏ)<br>";
echo date("Y-m-d",strtotime("+1 week", $time))." ÀÏÁÖÀÏ ÈÄ<br>";
echo date("Y-m-d",strtotime("-1 month", $time))." ÇÑ´Þ Àü<br>";
echo date("Y-m-d",strtotime("+1 month", $time))." ´ÙÀ½´Þ<br>";
echo date("Y-m-d",strtotime("+6 month", $time))." 6´ÞÈÄ<br>";
echo date("Y-m-d",strtotime("+12 month", $time))." 12´ÞÈÄ<br>";
echo date("Y-m-d",strtotime("next Thursday", $time))." ´ÙÀ½ÁÖ ¸ñ¿äÀÏ<br>";
echo date("Y-m-d",strtotime("last Monday", $time))." Áö³ ¿ù¿äÀÏ<br>";
echo date("Y-m-d",strtotime("10 September 2000", $time))." 2000³â 9¿ù 10ÀÏ <br>";
echo strtotime("+5 minutes"); " ÇöÀç ½Ã°£º¸´Ù 5ºÐ ÈÄ";
Äõ¸®¹®À¸·Î ³¯Â¥°è»ê
$query = "SELECT (now() - interval '1 month')::timestamp"; // ÇöÀç ºÎÅÍ ÇÑ ´Þ Àü ³¯Â¥
$query = "SELECT (now() + interval '6 month')::timestamp"; // ÇöÀç ºÎÅÍ 6 ´Þ ÈÄ ³¯Â¥ |
|
̵̧ : 561 |
̵̧
¸ñ·Ï
|
|