Java Java String Format toJavaTime(double time)

Here you can find the source of toJavaTime(double time)

Description

Convert from Hydra time in seconds since the epoch as a double to Java standard time in milliseconds since the epoch as a long.

License

Open Source License

Parameter

Parameter Description
time Hydra standard time

Return

Java standard time

Declaration

public static long toJavaTime(double time) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/* w  w  w. ja v  a  2 s  .com*/
     * Convert from Hydra time in seconds since the epoch as 
     * a double to Java standard time in milliseconds since the 
     * epoch as a long.
     * 
     * @param time Hydra standard time
     * @return Java standard time
     */
    public static long toJavaTime(double time) {
        return (long) (1000d * time);
    }
}

Related

  1. toJavaSourceType(String type)
  2. toJavaStaticIdentifier(String string)
  3. toJavaString(final String s)
  4. toJavaString(String buf)
  5. toJavaString(String text)
  6. toJavaTypeIdentifier(String string)
  7. toJavaTypeName(String edmTypeName)
  8. toJavaTypes(Class clazz, String value)
  9. toJavaVariable(Class compClass, String name)