Java Minute mjdInMinutes(double mjd)

Here you can find the source of mjdInMinutes(double mjd)

Description

Recalculate the number of days (Modified Julian date) to minutes

License

Open Source License

Parameter

Parameter Description
mjd Modified Julian Date

Return

minutes since 00:00 November 17, 1858 UTC

Declaration

public static double mjdInMinutes(double mjd) 

Method Source Code

//package com.java2s;
/* MOD_V2.0/* w  ww. j av  a 2  s .co  m*/
 * Copyright (c) 2012 OpenDA Association
 * All rights reserved.
 *
 * This file is part of OpenDA.
 *
 * OpenDA is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * OpenDA is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with OpenDA.  If not, see <http://www.gnu.org/licenses/>.
 */

public class Main {
    private static final double daysToMinutes = 60 * 24;

    /**
     * Recalculate the number of days (Modified Julian date) to minutes
     *
     * @param mjd
     *           Modified Julian Date
     * @return minutes since 00:00 November 17, 1858 UTC
     */
    public static double mjdInMinutes(double mjd) {
        return Math.round(mjd * daysToMinutes);
    }
}

Related

  1. minutes2Ms(long minutes)
  2. minutes2seconds(long minutes)
  3. minutesFromEpisode(int episodeNumber, int episodeLength)
  4. minutesFromSecondPadded(int seconds)
  5. minutesFromSlots(int slots)
  6. nextMinutes(int diff)
  7. normalizeToMinute(Date date)
  8. numberOfMinutesForDays(int days)
  9. refineHourMinute(String timeString)