package com;
public class Date {
public static int rn(int y,int m,int d)//闰年,在明天是几号里用到
{
int f=0;
if(y%400==0||y%4==0&&y%100!=0)
f=1;
return f;
}
public static int xt(int y1,int m1,int d1,int y2,int m2,int d2)//相同
{
int f=0;
if(y1==y2&&m1==m2&&d1==d2)
f=1;
return f;
}
public static int [] mt(int y,int m,int d)//明天
{
int []a=new int[3];
switch(m)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
{
d++;
if(d>31)
{
m=m+1;
d=1;
if(m>12)
{
y=y+1;
m=1;
d=1;
}
}
break;
}
case 4:
case 6:
case 9:
case 11:
{ d++;
if(d>30)
{
m=m+1;
d=1;
if(m>12)
{
y=y+1;