Java TimeZone Create getTimeZone()

Here you can find the source of getTimeZone()

Description

Returns the time zone in use.

License

Open Source License

Return

the time zone

Declaration

public static synchronized TimeZone getTimeZone() 

Method Source Code

//package com.java2s;
/*/* w  w  w  .  jav a 2 s  . c  om*/
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.util.TimeZone;

public class Main {
    /** the timezone to use. */
    protected static TimeZone m_TimeZone = TimeZone.getDefault();

    /**
     * Returns the time zone in use.
     *
     * @return      the time zone
     */
    public static synchronized TimeZone getTimeZone() {
        return m_TimeZone;
    }
}

Related

  1. getAvailableTimezones()
  2. getCurrentTimezone()
  3. getCurrentTimeZoneTime()
  4. getServerTimeZone()
  5. getTimeZone()
  6. getTimeZone()
  7. getTimeZone()
  8. getTimeZone()
  9. getTimeZone(Date date)