Here you can find the source of toSeconds(long nanoSeconds)
public static Double toSeconds(long nanoSeconds)
//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 }