/**
* 음력의 일자를 가지고 물때를 계산한다.
* 서해의 물때를 기준으로 계산한다.
* @param lunaDay 음력의 일짜.
* @return
*/
public static int getSeaTime(int lunaDay){
int rtnValue = 0;
int calc = (lunaDay+6)-15 > 15?(lunaDay+6)-30:(lunaDay+6)-15 ;
if(calc <= 0){
if(calc == 0){
rtnValue = 15;
}
else{
rtnValue = (lunaDay+6);
}
}
else{
rtnValue = calc;
}
return rtnValue;
}
}