Example usage for java.util TimeZone clone

List of usage examples for java.util TimeZone clone

Introduction

In this page you can find the example usage for java.util TimeZone clone.

Prototype

public Object clone() 

Source Link

Document

Creates a copy of this TimeZone.

Usage

From source file:Main.java

public static void main(String args[]) {

    // create object of TimeZone class. 
    TimeZone timezoneobj = TimeZone.getDefault();
    System.out.println("Original object: " + timezoneobj);

    // cloning time zone object
    Object objClone = timezoneobj.clone();
    System.out.println("Clone object: " + objClone);
}