Java Nano Second Convert asNanoSeconds(long seconds)

Here you can find the source of asNanoSeconds(long seconds)

Description

as Nano Seconds

License

LGPL

Declaration

public static long asNanoSeconds(long seconds) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    private static final long MICROSECONDS_TO_UNIX_EPOCH_FROM_WINDOWS = 11644473600000000L;

    public static long asNanoSeconds(long seconds) {
        return (seconds * 1000 + MICROSECONDS_TO_UNIX_EPOCH_FROM_WINDOWS) * 10;
    }//from   www .j  a v  a  2s  . c o  m
}

Related

  1. appendSecondsToDurationString(final StringBuilder sb, final long seconds, final long nanoseconds)
  2. doubleToNanoseconds(double d)
  3. durationInSeconds(long startNano)
  4. humanReadableNanoseconds(long delta)
  5. microSecondToStr(int nanos, int meta)