Java TimeZone inDaylightTime() MethodThe inDaylightTime(Date date) method of TimeZone class returns true if the given date is in Daylight Saving Time in this time zone. Otherwise returns false. Syntax:Parameters:date ? It is the given Date. Returns:It will return true if the given date is in Daylight Saving Time. Otherwise, it will return false. Example 1Output: TimeZone In daylight time: false Example 2Output: TimeZone In daylight time: false Example 3Output: Offset value :10800000 TimeZone In daylight time: false Next TopicJava-timezone-setdefault-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India