Java Time Now getNowHour()

Here you can find the source of getNowHour()

Description

get Now Hour

License

Apache License

Declaration

public static String getNowHour() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {

    public static String getNowHour() {
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
        return sdf.format(new Date());
    }/*from  www.  j a v  a2s.c  o  m*/
}

Related

  1. getNowDayTimeLong()
  2. getNowDefault()
  3. getNowFileFormat()
  4. getNowFormatLog()
  5. getNowFormattedDateTimeStr(String pattern)
  6. getNowInBanFormat()
  7. getNowInputDate()
  8. getNowOfDateByFormat(String format)
  9. getNowPatch()