资 源 简 介
http://dgkim84.tistory.com or http://blog.jgear.org
http://www.kdevgrp.com
벌써 3명이 받았네요.
간단히 버그 수정
한글 native2ascii를 이용해서 대충한 것 변환해서 올렸습니다.
```
package org.jgear.util;
import java.util.Date;
import java.util.Locale;
import junit.framework.TestCase;
public class TimeDiffTest extends TestCase {
public void testTimeDiff() throws Exception {
long longNow = System.currentTimeMillis();
long long1DayAgo = longNow - 86400000;
int intNow = (int) (longNow / 1000);
int int1DayAgo = intNow - 86400;
Date dateNow = new Date(longNow);
Date date1DayAgo = new Date(long1DayAgo);
TimeDiff.setDefaultLocale(Locale.ENGLISH);
assertEquals("1 day ago", TimeDiff.diffText(date1DayAgo));
assertEquals("1 day ago", TimeDiff.diffText(date1DayAgo, dateNow));
assertEquals("1 day ago", TimeDiff.diffText(long1DayAgo));
assertEquals("1 day ago", TimeDiff.diffText(lon