Advertisement
fabioceep

Java: Controle Ponto

Feb 3rd, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.sistemaescola;
  7.  
  8. import java.text.SimpleDateFormat;
  9. import java.util.Date;
  10.  
  11. /**
  12.  *
  13.  * @author fabio
  14.  */
  15. public class ControleDePonto {
  16.     public void registra(){
  17.         SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss)");
  18.         Date agora = new Date();
  19.        
  20.         System.out.println("Entrada: ");
  21.         System.out.println("Data..: " + sdf.format(agora));
  22.        
  23.     }
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement