How to Declare TimeZone object

TimeZone was added in API Level 1
TimeZone represents a time zone, primarily used for configuring a Calendar or SimpleDateFormat instance.
Most applications will use getDefault() which returns a TimeZone based on the time zone where the program is running. You can also get a specific TimeZone by Olson ID.
It is highly unlikely you'll ever want to use anything but the factory methods yourself. Let classes like Calendar and SimpleDateFormat do the date computations for you.

1. Add the below import to the imports section.

import java.util.TimeZone;

2. Add the below line to the onCreate method. This will create a new TimeZone object named myTimeZone.

TimeZone myTimeZone;

3. Compile and run!
Resources:
developer.android.com/reference/java/util/TimeZone.html