Java Minute Get getMinute()

Here you can find the source of getMinute()

Description

get Minute

License

Open Source License

Declaration

public static double getMinute() 

Method Source Code


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

import java.text.DecimalFormat;

public class Main {
    private static long timer = 0;
    private static DecimalFormat formatter = new DecimalFormat("#.##");

    public static double getMinute() {
        return format(getSecond() / 60.0);
    }/*w ww  . ja  v a  2  s . c o  m*/

    private static Double format(double val) {
        return Double.parseDouble(formatter.format(val));
    }

    public static double getSecond() {
        return format((double) getMili() / 1000.0);
    }

    public static long getMili() {
        return timer / 1000000;
    }
}

Related

  1. getMin(String dateTime)
  2. getMinDateString(Date date)
  3. getMineType(String urlFile)
  4. getMininte(Date time)
  5. getMiniTime()
  6. getMinute()
  7. getMinute()
  8. getMinute(Date date)
  9. getMinute(Date date)