Java TimeZone Default Get getDefaultID()

Here you can find the source of getDefaultID()

Description

Return the Default TimeZoneID (e.g.

License

Open Source License

Return

the default ID

Declaration

public static String getDefaultID() 

Method Source Code

//package com.java2s;
/**//from   w  w  w  . j a  va 2  s.  co  m
 * Syncnapsis Framework - Copyright (c) 2012-2014 ultimate
 * 
 * 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 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 MECHANTABILITY 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 Plublic License along with this program;
 * if not, see <http://www.gnu.org/licenses/>.
 */

import java.util.TimeZone;

public class Main {
    /**
     * Return the Default TimeZoneID (e.g. for user registration or first application visits).
     * 
     * @return the default ID
     */
    public static String getDefaultID() {
        return TimeZone.getDefault().getID();
    }
}

Related

  1. getDefaultRawOffset()
  2. getDefaultTimeZone()
  3. getDefaultTimeZone()
  4. getDefaultTimeZone()