public void setOffsetMinutes ( int theZoneOffsetMinutes ) { int offsetAbs = Math . abs ( theZoneOffsetMinutes ) ; int mins = offsetAbs % 60 ; int hours = offsetAbs / 60 ; if ( theZoneOffsetMinutes < 0 ) { setTimeZone ( TimeZone . getTimeZone ( "GMT-" + hours + ":" + mins ) ) ; } else { setTimeZone ( TimeZone . getTimeZone ( "GMT+" + hours + ":" + mins ) ) ; } }
Sets the TimeZone offset in minutes relative to GMT