[Jspro-cvs] jsPro/docs date.html,1.3,1.4
Brought to you by:
wigleys
|
From: <gat...@us...> - 2003-09-14 08:11:07
|
Update of /cvsroot/jspro/jsPro/docs In directory sc8-pr-cvs1:/tmp/cvs-serv25987/docs Modified Files: date.html Log Message: added oDebug; slight reformatting Index: date.html =================================================================== RCS file: /cvsroot/jspro/jsPro/docs/date.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** date.html 6 Sep 2003 01:45:36 -0000 1.3 --- date.html 14 Sep 2003 08:11:04 -0000 1.4 *************** *** 24,215 **** * +-------------------------------------------------------------------------+ * $Id$ - * --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Date</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../date.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! var oDate = new Date(); ! </script> ! </head> ! <body> ! ! <table> ! <tbody> ! <tr> ! <td>Date.formatDate()</td> ! <td><input id="formatDate1" name="input" type="text" size="5"/></td> ! <td><input id="formatDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="formatDateResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getDayOfYear()</td> ! <td></td> ! <td><input id="getDayOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getDayOfYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getDaysInMonth()</td> ! <td></td> ! <td><input id="getDaysInMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getDaysInMonthResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getGMTOffset()</td> ! <td></td> ! <td><input id="getGMTOffset" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getGMTOffsetResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLong12Hours()</td> ! <td></td> ! <td><input id="getLong12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLong12HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLong24Hours()</td> ! <td></td> ! <td><input id="getLong24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLong24HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongDate()</td> ! <td></td> ! <td><input id="getLongDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongDateResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongDayName()</td> ! <td></td> ! <td><input id="getLongDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongDayNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongMinutes()</td> ! <td></td> ! <td><input id="getLongMinutes" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongMinutesResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongMonth()</td> ! <td></td> ! <td><input id="getLongMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongMonthResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongMonthName()</td> ! <td></td> ! <td><input id="getLongMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongMonthNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongSeconds()</td> ! <td></td> ! <td><input id="getLongSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongSecondsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getMeridiem()</td> ! <td></td> ! <td><input id="getMeridiem" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getMeridiemResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getOrdinalSuffix()</td> ! <td></td> ! <td><input id="getOrdinalSuffix" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getOrdinalSuffixResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getRFC822Date()</td> ! <td></td> ! <td><input id="getRFC822Date" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getRFC822DateResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShort12Hours()</td> ! <td></td> ! <td><input id="getShort12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShort12HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShort24Hours()</td> ! <td></td> ! <td><input id="getShort24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShort24HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortDayName()</td> ! <td></td> ! <td><input id="getShortDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortDayNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortMonth()</td> ! <td></td> ! <td><input id="getShortMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortMonthResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortMonthName()</td> ! <td></td> ! <td><input id="getShortMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortMonthNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortYear()</td> ! <td></td> ! <td><input id="getShortYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getSwatchTime()</td> ! <td></td> ! <td><input id="getSwatchTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getSwatchTimeResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getTimeSeconds()</td> ! <td></td> ! <td><input id="getTimeSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getTimeSecondsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getTimezone()</td> ! <td></td> ! <td><input id="getTimezone" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getTimezoneResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getTimezoneOffsetSeconds()</td> ! <td></td> ! <td><input id="getTimezoneOffsetSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getTimezoneOffsetSecondsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getWeekOfYear()</td> ! <td></td> ! <td><input id="getWeekOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getWeekOfYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.isDaylightSavingsTime()</td> ! <td></td> ! <td><input id="isDaylightSavingsTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="isDaylightSavingsTimeResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.isLeapYear()</td> ! <td></td> ! <td><input id="isLeapYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="isLeapYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> --- 24,214 ---- * +-------------------------------------------------------------------------+ * $Id$ --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Date</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../date.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! var oDebug = new Debug(); ! var oDate = new Date(); ! </script> ! </head> ! <body> ! <table> ! <tbody> ! <tr> ! <td>Date.formatDate()</td> ! <td><input id="formatDate1" name="input" type="text" size="5" /></td> ! <td><input id="formatDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="formatDateResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getDayOfYear()</td> ! <td> </td> ! <td><input id="getDayOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getDayOfYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getDaysInMonth()</td> ! <td> </td> ! <td><input id="getDaysInMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getDaysInMonthResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getGMTOffset()</td> ! <td> </td> ! <td><input id="getGMTOffset" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getGMTOffsetResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLong12Hours()</td> ! <td> </td> ! <td><input id="getLong12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLong12HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLong24Hours()</td> ! <td> </td> ! <td><input id="getLong24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLong24HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongDate()</td> ! <td> </td> ! <td><input id="getLongDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongDateResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongDayName()</td> ! <td> </td> ! <td><input id="getLongDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongDayNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongMinutes()</td> ! <td> </td> ! <td><input id="getLongMinutes" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongMinutesResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongMonth()</td> ! <td> </td> ! <td><input id="getLongMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongMonthResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongMonthName()</td> ! <td> </td> ! <td><input id="getLongMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongMonthNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongSeconds()</td> ! <td> </td> ! <td><input id="getLongSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongSecondsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getMeridiem()</td> ! <td> </td> ! <td><input id="getMeridiem" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getMeridiemResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getOrdinalSuffix()</td> ! <td> </td> ! <td><input id="getOrdinalSuffix" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getOrdinalSuffixResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getRFC822Date()</td> ! <td> </td> ! <td><input id="getRFC822Date" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getRFC822DateResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShort12Hours()</td> ! <td> </td> ! <td><input id="getShort12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShort12HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShort24Hours()</td> ! <td> </td> ! <td><input id="getShort24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShort24HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortDayName()</td> ! <td> </td> ! <td><input id="getShortDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortDayNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortMonth()</td> ! <td> </td> ! <td><input id="getShortMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortMonthResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortMonthName()</td> ! <td> </td> ! <td><input id="getShortMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortMonthNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortYear()</td> ! <td> </td> ! <td><input id="getShortYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getSwatchTime()</td> ! <td> </td> ! <td><input id="getSwatchTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getSwatchTimeResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getTimeSeconds()</td> ! <td> </td> ! <td><input id="getTimeSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getTimeSecondsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getTimezone()</td> ! <td> </td> ! <td><input id="getTimezone" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getTimezoneResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getTimezoneOffsetSeconds()</td> ! <td> </td> ! <td><input id="getTimezoneOffsetSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getTimezoneOffsetSecondsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getWeekOfYear()</td> ! <td> </td> ! <td><input id="getWeekOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getWeekOfYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.isDaylightSavingsTime()</td> ! <td> </td> ! <td><input id="isDaylightSavingsTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="isDaylightSavingsTimeResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.isLeapYear()</td> ! <td> </td> ! <td><input id="isLeapYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="isLeapYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> \ No newline at end of file |