Java Minute minute(double serial_number)

Here you can find the source of minute(double serial_number)

Description

minute

License

Apache License

Declaration

public static final double minute(double serial_number) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final double minute(double serial_number) {
        if (!isFinite(serial_number)) {
            return Double.NaN;
        }//  w  ww .j  ava2 s .  c o m
        double res = Math.floor((serial_number - Math.floor(serial_number)) * 86400 + 0.5);
        return Math.floor(res / 60) % 60;

    }

    public static final boolean isFinite(double x) {
        return !(Double.isInfinite(x) || Double.isNaN(x));
    }
}

Related

  1. getDateAfter(Date date, int minute)
  2. getDateTime(Date d, int hour, int minute, int second, int millisecond)
  3. isMinute(int num)
  4. isValidMinute(final int min)
  5. isWholeMinute(int seconds)
  6. MINUTE(int min)
  7. minute2hour(int minute)
  8. minutes()
  9. minutes(int m)