Android Date Format getMainClockString(Date utcDate)

Here you can find the source of getMainClockString(Date utcDate)

Description

get Main Clock String

Declaration

public static String getMainClockString(Date utcDate) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

import java.util.Locale;

public class Main {
    public static String getMainClockString(Date utcDate) {
        if (utcDate.getTime() == 0) {
            return "";
        }/*from   w w  w. j  a  va  2 s .c om*/

        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm", Locale.CHINA);
        return sdf.format(utcDate.getTime());
    }
}

Related

  1. convertDateToString(Date date)
  2. formatDate(Date date)
  3. now(String dateFormat)
  4. now(String dateFormat)
  5. getLongFriendlyDate(Date dt)
  6. currentDateToString(String format)
  7. dateToString(Date paramDate, String paramString)
  8. changeDateToFormatString(Date fecha, String pattern)
  9. createName(String format, long dateTaken)