void TimeMinusHour(int year, int mon, int day, int hour);
ÁÖ¾îÁø ³¯Â¥ º¯¼ö¿¡¼ 1½Ã°£À» »©¼ °¢ º¯¼ö¿¡ ¹ÝȯÇÑ´Ù. À±´Þ 󸮵µ µÈ´Ù.
ÇÔ¼öÀÎÀÚ
year - ³â (ű׳ª º¯¼ö »ç¿ë)
mon - ¿ù (ű׳ª º¯¼ö »ç¿ë)
day - ÀÏ (ű׳ª º¯¼ö »ç¿ë)
hour - ½Ã (ű׳ª º¯¼ö »ç¿ë)
return °ª
¸®ÅÏ°ªÀº ¾ø´Ù.
¿¹Á¦1 ( ½ºÅ©¸³Æ®³»ÀÇ º¯¼ö¸¦ »ç¿ëÇÑ °æ¿ì )
year = 2000;
mon = 1;
day = 14;
hour = 12;
@TimeMinusHour(year, mon, day, hour);
¹®Àå¼³¸í : ÇÔ¼ö°¡ ½ÇÇàµÇ°í ³ª¸é 2000³â 1¿ù 14ÀÏ 11½Ã °¡ µÈ´Ù.
Year = 2000, mon = 1, day = 14, hour = 11ÀÌ µÈ´Ù.
¿¹Á¦2 ( ½ºÅ©¸³Æ®³»ÀÇ º¯¼ö¸¦ »ç¿ëÇÏÁö ¾Ê°í ¸Þ¸ð¸®Å±׸¦ ÀÌ¿ëÇÑ °æ¿ì)
$year = 2000;
$mon = 1;
$day = 1;
$hour = 0;
@TimeMinusHour($year, $mon, $day, $hour);
¹®Àå¼³¸í : ÇÔ¼öÀÇ ÀÎÀڷΠű׸¦ ¹Ù·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.
$year = 1999, $mon = 12, $day = 31, $hour = 23 ÀÌ µÈ´Ù.
°ü·ÃÇ׸ñ