랜임 모드 버그 수정

This commit is contained in:
Hide_D committed 2018-10-24 00:54:18 +09:00
1 parent 40e0adfefe
commit 8e8eda1012
7 files changed
+24 -8

No files matched your search

+14
View File
@@ -63,4 +63,18 @@ class TimeUtil
{
return date('H:i:s', strtotime('00:00:00') + $second);
}
/**
* $year년, $month월 부터 $afterMonth 개월 이내인지. $afterMonth 포함.
*
*/
public static function IsRangeMonth(int $baseYear, int $baseMonth, int $askYear, int $askMonth, int $afterMonth):bool{
if($month < 1 || $month > 12){
throw new \InvalidArgumentException('개월이 올바르지 않음');
}
if($afterMonth < 0){
throw new \InvalidArgumentException('기간이 올바르지 않음');
}
}
}