Code example for TimeZone

Methods: getRawOffset

0
		 
		Log.d("Time in UTC", Double.toString(UT));
		 
		// Convert To Local Time 
		TimeZone tZone = cal.getTimeZone();
		double offset = (double) tZone.getRawOffset()/ 3600000;		
		UT += offset;
		Log.d("offset",Double.toString(offset));
		Log.d("realtime",Double.toString(UT));
		 
		// Set CashMoney 
		cashMoney = Calendar.getInstance();
		cashMoney.clear();
		double UTMins = (double) (UT % 1) * 60; 
		double UTHours = (double) UT / 1;
		cashMoney.set(Calendar.HOUR_OF_DAY, (int) UTHours);
		cashMoney.set(Calendar.MINUTE, (int) UTMins);
		 
	} 
	 
	public Calendar getCashMoney() {