アットウィキロゴ

rssだyちぇck

class rssdaycheck{

String[] date=new String[100];
int articlenumber;
int[] gyear=new int[100];
int[] gmonth=new int[100];
int[] gday=new int[100];
int mm;
int s;
String str;
String z1,z2,z3,z4;

void makedata(){

for (s=1;s<articlenumber+1;s++){
str=date[s];
z1=str.substring(5,6);
z2=str.substring(6,7);
z3=str.substring(8,11);
z4=str.substring(12,16);
makemonth(z3);
gyear[s]=Integer.parseInt(z4);
gmonth[s]=mm;
gday[s]=10*Integer.parseInt(z1)+Integer.parseInt(z2);
}

}
void makemonth(String str){
if("Jan".equals(str))mm=1;
if("Feb".equals(str))mm=2;
if("Mar".equals(str))mm=3;
if("Apr".equals(str))mm=4;
if("May".equals(str))mm=5;
if("Jun".equals(str))mm=6;
if("Jul".equals(str))mm=7;
if("Aug".equals(str))mm=8;
if("Sep".equals(str))mm=9;
if("Oct".equals(str))mm=10;
if("Nov".equals(str))mm=11;
if("Dec".equals(str))mm=12;
}
}
最終更新:2011年04月02日 20:29