package co.edu.sena.lession8;

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

public class Ejemplo04 {
    public static void main(String[] args) {
        Date fecha = new Date();
        System.out.println(fecha);

        final Date currentTime = new Date();

        final SimpleDateFormat sdf =
                new SimpleDateFormat("EEE, MMM d, yyyy hh:mm:ss a z");


        sdf.setTimeZone(TimeZone.getTimeZone("GMT-5"));
        System.out.println("GMT time: " + sdf.format(currentTime));
    }
}

{'avg_line_length': 24.727272727272727, 'max_line_length': 70, 'alphanum_fraction': 0.6433823529411765, 'licenses': ['Apache-2.0'], 'repository_name': 'SENA-CEET/1349397-Trimestre-3', 'path': 'java/fundamentals/src/main/java/co/edu/sena/lession8/Ejemplo04.java', 'size': 544, 'lang': 'Java'}