PrintfExamples.java Source code

Java tutorial

Introduction

Here is the source code for PrintfExamples.java

Source

import java.util.Date;

public class PrintfExamples {
    public static void main(String[] args) {

        System.out.printf("The DATE is %tC\n", new Date());
        System.out.printf("The DATE is %tz\n", new Date());

    }

}
/*
The DATE is 20
The DATE is -0800
    
    
*/