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

java.time.zone.ZoneRules Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.time.zone;

import java.io.Serializable;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.List;

public final class ZoneRules implements Serializable {
	native public static ZoneRules of(
		ZoneOffset baseStandardOffset,
		ZoneOffset baseWallOffset,
		List standardOffsetTransitionList,
		List transitionList,
		List lastRules
	);

	native public static ZoneRules of(ZoneOffset offset);

	native public boolean isFixedOffset();

	native public ZoneOffset getOffset(Instant instant);

	native public ZoneOffset getOffset(LocalDateTime localDateTime);

	native public List getValidOffsets(LocalDateTime localDateTime);

	native public ZoneOffsetTransition getTransition(LocalDateTime localDateTime);

	native public ZoneOffset getStandardOffset(Instant instant);

	native public Duration getDaylightSavings(Instant instant);

	native public boolean isDaylightSavings(Instant instant);

	native public boolean isValidOffset(LocalDateTime localDateTime, ZoneOffset offset);

	native public ZoneOffsetTransition nextTransition(Instant instant);

	native public ZoneOffsetTransition previousTransition(Instant instant);

	native public List getTransitions();

	native public List getTransitionRules();

	native public boolean equals(Object otherRules);

	native public int hashCode();

	native public String toString();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy