io.virtdata.libbasics.shared.from_long.to_time_types.joda.Timezones Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package io.virtdata.libbasics.shared.from_long.to_time_types.joda;
import org.joda.time.DateTimeZone;
public class Timezones {
public static DateTimeZone forId(String id) {
try {
return DateTimeZone.forID(id);
} catch (IllegalArgumentException e) {
throw new RuntimeException("Unable to find timezone for id '" + id + "'. Consider one of these:" +
DateTimeZone.getAvailableIDs());
}
}
}