Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

public class Main {
    public static void main(String[] argv) {
        DateTimeFormatter format = DateTimeFormatter.ofPattern("MMM dd yyyy hh:mm a z");
        ZonedDateTime arrivalDate = ZonedDateTime.now();
        String landing = arrivalDate.format(format);
        System.out.printf("Arriving at :  %s %n", landing);
    }
}