Android Time Format getTimeStr(long time)

Here you can find the source of getTimeStr(long time)

Description

get Time Str

Declaration

public static String getTimeStr(long time) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.Locale;

public class Main {
    private final static SimpleDateFormat dateFormater = new SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss", Locale.CHINA);

    public static String getTimeStr(long time) {
        return dateFormater.format(new Date(time));
    }//from w w w  .  ja v a 2 s. c o  m
}

Related

  1. timeFormatToString(int paramInt)
  2. timeLongToHhmm(long timeMillis, DateFormat df)
  3. toModifiedTimeString(Date modified)
  4. convertDateTime(String date)
  5. convertDateTime(long date)
  6. getTimeString(Date utcDate)
  7. getTimeString(String dateString)
  8. getTimeString(String utcTimeString)
  9. dateTimeToXSDate(Date date)