List of usage examples for jdk.nashorn.internal.objects NativeDate setTime
@Function(attributes = Attribute.NOT_ENUMERABLE) public static double setTime(final Object self, final Object time)
From source file:org.siphon.common.js.JsDateUtil.java
License:Open Source License
public Object toNativeDate(double time) throws ScriptException { ScriptObjectMirror m = (ScriptObjectMirror) newDate.eval(); NativeDate.setTime(m.to(NativeDate.class), time); return m;//from w w w. ja v a2 s . com }