/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Clock clock1 = Clock.system(ZoneId.of("Europe/Paris"));
Clock clock2 = Clock.system(ZoneId.of("Asia/Kolkata"));
System.
out.
println("Clock1 instant: " + clock1.
instant()); System.
out.
println("Clock2 instant: " + clock2.
instant());
System.
out.
println( "ZoneId.systemDefault(): " + ZoneId.
systemDefault() ) ;
System.
out.
println("Clock1 ZonedDateTime.now: " + ZonedDateTime.
now( clock1
) ); System.
out.
println("Clock2 ZonedDateTime.now: " + ZonedDateTime.
now( clock2
) );
System.
out.
println( "ZoneId.systemDefault(): " + ZoneId.
systemDefault() ) ; }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlDbG9jayBjbG9jazEgPSBDbG9jay5zeXN0ZW0oWm9uZUlkLm9mKCJFdXJvcGUvUGFyaXMiKSk7CiAgICAgICAgQ2xvY2sgY2xvY2syID0gQ2xvY2suc3lzdGVtKFpvbmVJZC5vZigiQXNpYS9Lb2xrYXRhIikpOwoKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIkNsb2NrMSBpbnN0YW50OiAiICsgY2xvY2sxLmluc3RhbnQoKSk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJDbG9jazIgaW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