Java TimeUnit Usage getDays(final long ms)

Here you can find the source of getDays(final long ms)

Description

get Days

License

Open Source License

Declaration

public static long getDays(final long ms) 

Method Source Code


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

import java.util.concurrent.TimeUnit;

public class Main {
    public static long getDays(final long ms) {
        return TimeUnit.MILLISECONDS.toDays(ms);
    }/*from  w w  w.  j  a  v a  2 s .  c o  m*/
}

Related

  1. getCurrentTimestampInSeconds()
  2. getDate(final int oceanTime)
  3. getDateBefore(final Date day)
  4. getDateWithoutTime(final Calendar calendar)
  5. getDayFromTimestamp(final long unixTimestamp)
  6. getDays(long endTs, Long lookback)
  7. getDeltaBetweenTimestamps(final long start, final long end)
  8. getDifferenceDays(Date d1, Date d2)
  9. getDiffInMinutes(Calendar startTime, Calendar endTime)