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