/** * Writes a JavaScript script tag that shows a date in the user's locale. Prints <code>&#160;</code> * if the date is <code>null</code>. * Writes to the internal <code>PrintWriter</code>. * * @see #writeDateJavaScript(long,Appendable) */ public ChainWriter writeDateJavaScript(Date date, Sequence sequence, Appendable scriptOut) throws IOException { writeDateJavaScript(date, sequence, out, scriptOut); return this; }
/** * Prints a JavaScript script tag that shows a date in the user's locale. Prints <code>&#160;</code> * if the date is <code>-1</code>. * Writes to the internal <code>PrintWriter</code>. * * @deprecated * @see #writeDateJavaScript(long) */ @Deprecated public ChainWriter printDateJS(long date, Sequence sequence, Appendable scriptOut) throws IOException { return writeDateJavaScript(date==-1 ? null : new Date(date), sequence, scriptOut); }