public static void main(String[] args) throws ParseException{
		Calendar calendar=Calendar.getInstance();
		System.out.println(calendar.get(Calendar.MILLISECOND));
		calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE),0,0,0);
		System.out.println(calendar.getTime());
		System.out.println(Math.random()*1000);
		Date now=new Date();
		int score=score(0,now);
		List<String> roles=new ArrayList<String>();
		roles.add("user");
		System.out.println(score);
		System.out.println(base(score(0,now),now));
		score+=1000*100;
		System.out.println(incScore(roles,score,100,now));
		roles.add("editor");
		System.out.println(incScore(roles,score,100,now));
		System.out.println(score(1,now));
		System.out.println(base(score(1,now),now));
		System.out.println(score(2,now));
		System.out.println(base(score(2,now),now));
		System.out.println(score(10,now));
		System.out.println(base(score(10,now),now));
		System.out.println(Integer.MAX_VALUE);
		System.out.println(Long.toHexString(new Date().getTime()));
		List<SortItem> list=new ArrayList<SortItem>();
		list.add(new SortItem(1,"2012-06-01 11:11:11"));
		list.add(new SortItem(2,"2012-06-01 11:11:11"));
		list.add(new SortItem(5,"2012-06-01 11:11:11"));
		list.add(new SortItem(3,"2012-06-02 11:11:11"));
		list.add(new SortItem(13,"2012-06-01 12:11:11"));
		list.add(new SortItem(25,"2012-06-02 6:11:11"));
		list.add(new SortItem(50,"2012-05-24 11:11:11"));
		list.add(new SortItem(2,"2012-06-24 11:11:11"));
		list.add(new SortItem(0,"2012-06-25 11:11:11"));
		Collections.sort(list,new Comparator<SortItem>(){

			@Override
			public int compare(SortItem arg0, SortItem arg1) {
				return (int) (arg1.getSeq()-arg0.getSeq());
			}
			
		});
		for(SortItem item:list){
			System.out.println(item);
		}
	}