Android Milliseconds to Minutes And Seconds Convert getMinute(long dateTimeMillis)

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

Description

get Minute

License

Open Source License

Declaration

public static int getMinute(long dateTimeMillis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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  w  ww.j  ava  2s  .c o m
}

Related

  1. milisecondsToMinutesAndSeconds(int milliseconds)
  2. getMillisecondsUntilNextMinute()