Example usage for Java jdk.nashorn.internal.objects NativeDate fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | construct(final boolean isNew, final Object self, final Object... args) Constructor - ECMA 15.9.3.1 new Date (year, month [, date [, hours [, minutes [, seconds [, ms ] ] ] ] ] ) |
double | getTime(final Object self) ECMA 15.9.5.9 Date.prototype.getTime ( ) |
double | setTime(final Object self, final Object time) ECMA 15.9.5.27 Date.prototype.setTime (time) |
Object | toJSON(final Object self, final Object key) ECMA 15.9.5.44 Date.prototype.toJSON ( key ) Provides a string representation of this Date for use by NativeJSON#stringify(Object,Object,Object,Object) |