Java TimeZone useDaylightTime() Method

The useDaylightTime() method of TimeZone class returns true if the current object of TimeZone is using DaylightTime else it returns false.

Syntax

Returns

it returns true if the current object of TimeZone is using DaylightTime else it returns false.

Example 1

Output:

Current day light time of TimeZone:false