private static int gLeapYear(int year){
	        int T;
	        T = 0;
	        if (year % 4 == 0)
	            T = 1;
	         
	        /* leap_year=1; */
	        if (year % 100 == 0)
	        {
	            T = 0;
	            /* years=100,200,300,500,... are not leap years */
	            if (year % 400 == 0)
	                T = 1;
	             
	        }
	         
	        return T;
	    }