All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.virtdata.libbasics.shared.from_long.to_time_types.joda.Timezones Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
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());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy