Java Time: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:


==Daylight Saving Time Offset==
==Daylight Saving Time Offset==
==Figuring Out Whether Daylight Saving is in Effect for a Certain Date==
<pre>
Date d = ...
inDaylightTime(d);
</pre>

Revision as of 21:56, 13 July 2016

Internal

Time Zone

Raw Time Zone Offset

TimeZone tz = ...
tz.getRawOffset()

Daylight Saving Time Offset

Figuring Out Whether Daylight Saving is in Effect for a Certain Date

Date d = ...
inDaylightTime(d);