/** * Writes a JavaScript script tag that a 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 #writeTimeJavaScript(long,Appendable) */ public ChainWriter writeTimeJavaScript(Date date, Sequence sequence, Appendable scriptOut) throws IOException { writeTimeJavaScript(date, sequence, out, scriptOut); return this; } // </editor-fold>
/** * Writes a JavaScript script tag that a 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 #writeTimeJavaScript(long) */ @Deprecated public ChainWriter printTimeJS(long date, Sequence sequence, Appendable scriptOut) throws IOException { return writeTimeJavaScript(date==-1 ? null : new Date(date), sequence, scriptOut); }