Java TimeZone getRawOffset() Method

The getRawOffset() method of TimeZone class returns the time in milliseconds for the given TimeZone. The values are affected by the daylight saving time that is why it is called the raw offset.

Syntax

Returns

It returns raw offset time in milliseconds

Example 1

Output:

Raw Offset value :10800000

Example 2

Output:

Raw Offset value :10800000