Android Time Get getCurrentTimeString()

Here you can find the source of getCurrentTimeString()

Description

get Current Time String

Declaration

public static String getCurrentTimeString() 

Method Source Code

//package com.java2s;
import java.util.Calendar;

public class Main {
    public static String getCurrentTimeString() {
        Calendar calendar = Calendar.getInstance();
        return calendar.get(Calendar.HOUR_OF_DAY) + ":"
                + calendar.get(Calendar.MINUTE);
    }/*from w w w .j  a va 2 s.  c  o  m*/
}

Related

  1. getNowDateTime()
  2. getTimeAsInt()
  3. nowAsTime()
  4. getCurrentTimeCalendar()
  5. getCurrentTimeStr()
  6. getTime()
  7. getTime()
  8. getCurrentlyDateTime()
  9. now()