Code example for TimeZone

Methods: getRawOffset

0
			UT -= 24;
		} 
	 
		// Convert To Local Time 
		TimeZone tZone = cal.getTimeZone();
		double offset = (double) tZone.getRawOffset()/ 3600000;		
		UT += offset;
		 
		if (UT < 0){
			UT += 23;
		} 
			 
		// Set SunCalendar 
		SunCalendar = Calendar.getInstance();
		SunCalendar.clear();
		int UTMins = (int) Math.floor((UT * 60)) % 60; 
		int UTHours = (int) UT / 1;
		 
		SunCalendar.set(Calendar.HOUR_OF_DAY, (int) UTHours);
		SunCalendar.set(Calendar.MINUTE, (int) UTMins);