Java Milliseconds fractionOfDayToMilliseconds(float fFractionOfDay)

Here you can find the source of fractionOfDayToMilliseconds(float fFractionOfDay)

Description

Convert a duration that is based on fraction-of-a-day to milliseconds.

License

Open Source License

Declaration

public static long fractionOfDayToMilliseconds(float fFractionOfDay) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from ww  w  .ja v a2 s. c  o  m*/
     * Convert a duration that is based on fraction-of-a-day to milliseconds.
     */
    public static long fractionOfDayToMilliseconds(float fFractionOfDay) {
        // convert from fraction of day to milliseconds
        float fDuration = (fFractionOfDay * 24 * 60 * 60 * 1000);
        return (long) fDuration;
    }
}

Related

  1. ensureSleepMillis(long millis)
  2. expensiveMethodTakingMillis(final int millis)
  3. filetimeToMillis(long filetime)
  4. formatDateMillis(long millis)
  5. FormatDateTime(Calendar p_date, String p_seperator, boolean p_showMilliseconds)
  6. getDurationFromMillis(final long millis)
  7. getDurationSecFromMillisDouble(long millis)
  8. getElapsedTimeInMilliseconds(Date startDate, Date endDate)
  9. getExpirationInMilliSeconds(long currentTime, int expirationTime)