Java Time

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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);