observesDaylightTime(): This method is available in java.util.SimpleTimeZone class of Java.
Syntax:
boolean java.util.SimpleTimeZone.observesDaylightTime()
This method returns true if this SimpleTimeZone observesDaylight Saving Time.
Parameters: NA
Returns: true if this SimpleTimeZone observesDaylight Saving Time; false otherwise.
Exceptions: NA
Approach
Java
import java.util.SimpleTimeZone;public class SimpleTimeZoneobservesDaylightTime {public static void main(String[] args) {SimpleTimeZone simpleTimeZone =new SimpleTimeZone(100, "India");System.out.println(simpleTimeZone.observesDaylightTime());}}
Output:
false
No comments:
Post a Comment