Java Second Convert toSeconds(long nanoSeconds)

Here you can find the source of toSeconds(long nanoSeconds)

Description

to Seconds

License

Open Source License

Declaration

public static Double toSeconds(long nanoSeconds) 

Method Source Code

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

public class Main {
    private static final Double SECONDS = 1000000000D;

    public static Double toSeconds(long nanoSeconds) {
        return nanoSeconds / SECONDS;
    }//w  w  w .  j a va  2s.c  o m
}

Related

  1. toNanoseconds(long sec, long nanos)
  2. toSeconds(double value)
  3. toSeconds(long date)
  4. toSeconds(long millis)
  5. toSeconds(long milliseconds)
  6. toSeconds(long nanoseconds)
  7. toSecondsPrecisionInMs(long ms)
  8. toTimeStringNoSeconds(Date timeString)
  9. unixtimeToString(long unixSeconds)