Java Nano Second Convert nanoToStr(long tsp)

Here you can find the source of nanoToStr(long tsp)

Description

nano To Str

License

Open Source License

Declaration

public static String nanoToStr(long tsp) 

Method Source Code

//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
}

Related

  1. nanoToMs(final long nano)
  2. nanoToMsConverter(long time)
  3. nanoToSec(Long n)
  4. nanoToSeconds(double nano)
  5. nanoToSecs(final long nanoTime)
  6. nowInNanoseconds()
  7. parseNanoseconds(String s)
  8. stringToNanoseconds(String time)