Here you can find the source of getUpdateTimeStr(long time)
public static String getUpdateTimeStr(long time)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final String UPDATE_TIME_STR_FORMAT = "yyyy??MM??dd?? HH:mm"; public static String getUpdateTimeStr(long time) { SimpleDateFormat dateFormat = new SimpleDateFormat( UPDATE_TIME_STR_FORMAT); Date d = new Date(time); return dateFormat.format(d); }/* w ww . j a v a 2 s.com*/ }