online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ import java.util.Date; import java.text.*; import java.time.*; import java.time.format.DateTimeFormatter; public class Main { public static void main(String[] args) { Long update_time = System.currentTimeMillis(); Date date = new Date(update_time); Format format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss z"); ZonedDateTime dateTime = ZonedDateTime.parse( format.format(date) + " GMT", formatter); ZoneId zone = ZoneId.of("Asia/Kolkata"); ZoneId zone1 = ZoneId.systemDefault(); ZonedDateTime dt1 = dateTime.withZoneSameInstant(zone); //ZonedDateTime utc = ZonedDateTime.parse( format.format(date) ); System.out.println("Original time: " + format.format(date)); System.out.println("Parsed time: " + dateTime.format(formatter) ); System.out.println("Local time: " + dt1.format(formatter) ); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue