2011-05-08 2 views

답변

0

GData의 TimeZoneProperty를 java.TimeZone으로 구문 분석하는 것은 간단합니다.

해결할 코드를 남겨 두겠습니다.

즐기십시오!

미키 완.

public static TimeZone parse(TimeZoneProperty pTimeZoneProperty) { 
    TimeZone timeZoneRet = null;  

    if (pTimeZoneProperty != null && pTimeZoneProperty.getValue() != null && !pTimeZoneProperty.getValue().isEmpty()) { 
     timeZoneRet = TimeZone.getTimeZone(pTimeZoneProperty.getValue()); 
    } 

    return timeZoneRet; 
}