Affichage de date avec la méthode ‘printf’: Exemple d’utilisation de ‘%tC’ et ‘%tZ’

Author:


{filelink=6021}

import java.util.Date;

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

    System.out.printf("La date %tCn", new Date() );
    System.out.printf("La date %tz", new Date());

  }

}
/*
La date 20
La date +00000

*/

Leave a Reply

Your email address will not be published. Required fields are marked *