Java tutorial
import java.time.ZonedDateTime; public class Main { public static void main(String[] args) { ZonedDateTime currentTime = ZonedDateTime.now(); System.out.printf("%tA %<tB %<te, %<tY %n", currentTime); System.out.printf("%TA %<TB %<te, %<tY %n", currentTime); System.out.printf("%tD %n", currentTime); System.out.printf("%tF %n", currentTime); System.out.printf("%tc %n", currentTime); System.out.printf("%Tc %n", currentTime); } }