TimeZone.getOffset

TimeZone.getOffset

Class Overview | Class Members | This Package | All Packages

Syntax
public abstract int getOffset( int era, int year, int month, int day, int dayOfWeek, int milliseconds )
Parameters
era
the era of the given date.
year
the year in the given date.
month
the month in the given date. Month is 0-based. e.g., 0 for January.
day
the day-in-month of the given date.
dayOfWeek
the day-of-week of the given date.
milliseconds
the millis in day.
Returns
the offset to add *to* GMT to get local time.
Description
Gets the time zone offset, for current date, modified in case of daylight savings. This is the offset to add *to* UTC to get local time.