1 16 package org.joda.time.tz; 17 18 import java.util.Collections ; 19 import java.util.Set ; 20 import org.joda.time.DateTimeZone; 21 22 30 public final class UTCProvider implements Provider { 31 32 35 public UTCProvider() { 36 super(); 37 } 38 39 43 public DateTimeZone getZone(String id) { 44 if ("UTC".equalsIgnoreCase(id)) { 45 return DateTimeZone.UTC; 46 } 47 return null; 48 } 49 50 53 public Set getAvailableIDs() { 54 return Collections.singleton("UTC"); 55 } 56 57 } 58 | Popular Tags |