io.ebeaninternal.server.core.timezone.SimpleDataTimeZone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.core.timezone;
import java.util.Calendar;
import java.util.TimeZone;
/**
* Implementation of DataTimeZone when single Calendar instance is used.
*/
public class SimpleDataTimeZone implements DataTimeZone {
protected final Calendar zone;
public SimpleDataTimeZone(String zoneId) {
this.zone = Calendar.getInstance(TimeZone.getTimeZone(zoneId));
}
@Override
public Calendar getTimeZone() {
return zone;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy