Java TimeUnit Usage nanosToSecs(long nanos)

Here you can find the source of nanosToSecs(long nanos)

Description

nanos To Secs

License

Open Source License

Declaration

public static long nanosToSecs(long nanos) 

Method Source Code


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

import java.util.concurrent.TimeUnit;

public class Main {
    public static long nanosToSecs(long nanos) {
        return TimeUnit.NANOSECONDS.toSeconds(nanos);
    }//from   w  w  w. j  av a 2  s.  c  om
}

Related

  1. min()
  2. minutesBetween(Date date1, Date date2)
  3. minutesSince(final long startNanos)
  4. nanoElapseToHumanReadable(final Long nanoElapse)
  5. nanosToHMSms(long nanos)
  6. nanoToString(final long nanos)
  7. now()
  8. numberOfDaysSinceEpoch(long milliSinceEpoch)
  9. parseDate(String value)