Android Long to Date Convert getMinute(long dateTimeMillis)

Here you can find the source of getMinute(long dateTimeMillis)

Description

get Minute

Declaration

public static int getMinute(long dateTimeMillis) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;

public class Main {
    public static int getMinute(long dateTimeMillis) {
        SimpleDateFormat format = new SimpleDateFormat("mm");
        StringBuilder dateString = new StringBuilder(
                format.format(dateTimeMillis));
        return Integer.parseInt(dateString.toString());
    }//from www.j  ava 2 s .  c  o m
}

Related

  1. getHour(long dateTimeMillis)
  2. getHour(long timeMillis)
  3. getHoursAndMinutes(long dateTimeMillis)
  4. getLocalTimeFromUTCMillis(long utcMillis)
  5. getLongOfString(String date)
  6. getMinutesSinceStartOfDay(long milliseconds)
  7. getMonth(long dateTimeMillis)
  8. getNameForDcim(long time)
  9. getNameForFile(long time)