Android Time Format timeLongToHhmm(long timeMillis, DateFormat df)

Here you can find the source of timeLongToHhmm(long timeMillis, DateFormat df)

Description

time Long To Hhmm

License

Open Source License

Declaration

public static String timeLongToHhmm(long timeMillis, DateFormat df) 

Method Source Code

//package com.java2s;
/*//from  w  w w  .  ja v a  2s  .c  o  m

 Copyright (C) 2011 Green Soybean Technologies, LLC
 <edamametech@gmail.com>

 This program is free software: you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation, either version 3 of
 the License, or (at your option) any later version.

 */

import java.text.DateFormat;

import java.util.Date;

public class Main {
    public static String timeLongToHhmm(long timeMillis, DateFormat df) {
        Date d = new Date(timeMillis);
        return df.format(d);
    }
}

Related

  1. getDateFromFormattedTimeStamp( String formattedTimeStamp)
  2. getFormattedTimeStamp(long millisSince1970)
  3. getRFC3339FormattedTime()
  4. get_current_date_time_format1_str()
  5. timeFormatToString(int paramInt)
  6. toModifiedTimeString(Date modified)
  7. convertDateTime(String date)
  8. convertDateTime(long date)
  9. getTimeStr(long time)