import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class Main {
	public static void main(String[] args) {
		Date date = new Date();

		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX", Locale.ENGLISH);

		sdf.setTimeZone(TimeZone.getTimeZone("America/New_York"));
		String strDateNewYork = sdf.format(date);
		System.out.println(strDateNewYork);

		sdf.setTimeZone(TimeZone.getTimeZone("Etc/UTC"));
		String strDateUtc = sdf.format(date);
		System.out.println(strDateUtc);
	}
}