Code example for TimeZone

Methods: setDefault

0
 
    public static void initialize() { 
        new TestClock(); 
 
        Locale.setDefault(Locale.UK);
        TimeZone.setDefault(timeZone);
    } 
 
    private TestClock() { 
        super(); 
    } 
 
    static { 
        timeZone = TimeZone.getTimeZone("Etc/UTC");
    } 
 
    /** 
     * Always return the time as 2003/8/17 21:30:25 
     */ 
    @Override 
Contextual code suggestions in your IDE  Get Codota for Java