Android String Format currentTime(CharSequence inFormat)

Here you can find the source of currentTime(CharSequence inFormat)

Description

current Time

Declaration

public static CharSequence currentTime(CharSequence inFormat) 

Method Source Code

//package com.java2s;

import android.text.format.DateFormat;

public class Main {

    public static CharSequence currentTime(CharSequence inFormat) {
        return DateFormat.format(inFormat, System.currentTimeMillis());
    }/*from   w  ww.  java  2 s .  c om*/
}

Related

  1. format(String str, Object... args)
  2. simpleFormat(String s, Object aobj[])
  3. format(String str, Object... args)
  4. formatAccountNo(String accountNo)
  5. formattedNumber(String number)
  6. formatIndent(String whiteSpace)
  7. formatNumberWithDecimals(Locale locale, String stringToFormat, int exactNumberOfDecimals)
  8. formatNumberWithDecimals(Locale locale, String stringToFormat, int minimalNumberOfDecimals, int maximumNumberOfDecimals)
  9. formatNumberWithThreeDecimals(Locale locale, String stringToFormat)