Here you can find the source of nanoToStr(long tsp)
public static String nanoToStr(long tsp)
//package com.java2s; public class Main { public static String nanoToStr(long tsp) { return String.format("%tF %<tT.%09d", tsp / 1000000, tsp % 1000000000); }// w w w .j a v a 2s . c o m }