Code example for TimeZone

Methods: getDisplayNameinDaylightTimeuseDaylightTime

0
		try 
		{ 
//			System.out.println("Looing for timezone: "+timeZoneStr);  
			if (timeZone != null)
			{ 
				boolean	zoneSupportsDST = timeZone.useDaylightTime();
				if (!zoneSupportsDST)
				{ 
//					System.out.println("Conference time zone does not use dst"); 
					tzCode = timeZone.getDisplayName(false,TimeZone.SHORT);
				} 
				else 
				{ 
//					System.out.println("Conference time zone uses dst"); 
					boolean confTimeWithinDST = timeZone.inDaylightTime(dt);
					tzCode = timeZone.getDisplayName(confTimeWithinDST,TimeZone.SHORT);
				} 
			} 
			else 
			{ 
//				System.out.println("The timezone string seems invalid:"+timeZoneStr);