Java Hour getHour()

Here you can find the source of getHour()

Description

Devuelve la hora actual

License

Open Source License

Declaration

public static String getHour() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    /**/*from w w  w. j  a v a  2  s  .c o  m*/
     * Devuelve la hora actual
     * @return 
     */
    public static String getHour() {
        return new SimpleDateFormat("HH:mm:ss").format(Calendar.getInstance().getTime());
    }
}

Related

  1. getHour()
  2. getHour()
  3. getHour()
  4. getHour()
  5. getHour()
  6. getHour()
  7. getHour()
  8. getHour()
  9. getHour()