View Javadoc
1   package org.csveed.bean.conversion;
2   
3   import java.util.TimeZone;
4   
5   public class TimeZoneConverter extends AbstractConverter<TimeZone> {
6   
7       public TimeZoneConverter() {
8           super(TimeZone.class);
9       }
10  
11      @Override
12      public TimeZone fromString(String text) throws Exception {
13          return TimeZone.getTimeZone(text);
14      }
15  
16      @Override
17      public String toString(TimeZone value) throws Exception {
18          return value.getDisplayName();
19      }
20  }