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