Java Date Time - Java TimeZone .observesDaylightTime ()








Syntax

TimeZone.observesDaylightTime() has the following syntax.

public boolean observesDaylightTime()

Example

In the following code shows how to use TimeZone.observesDaylightTime() method.

import java.util.TimeZone;

public class Main {
   public static void main( String args[] ){
      TimeZone timezonedefault = TimeZone.getDefault();
      
      System.out.println(timezonedefault.observesDaylightTime());
   }    
}

The code above generates the following result.