blob: 1b50dcc201e179d2b72af31cb52a1d59b8d53ee9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:05 PDT 2012 -->
<TITLE>
ExsltDatetime
</TITLE>
<META NAME="keywords" CONTENT="org.apache.xalan.lib.ExsltDatetime class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="ExsltDatetime";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExsltDatetime.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/xalan/lib/ExsltCommon.html" title="class in org.apache.xalan.lib"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xalan/lib/ExsltDynamic.html" title="class in org.apache.xalan.lib"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xalan/lib/ExsltDatetime.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ExsltDatetime.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.xalan.lib</FONT>
<BR>
Class ExsltDatetime</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xalan.lib.ExsltDatetime</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.50"><B>ExsltDatetime</B></A><DT>extends java.lang.Object</DL>
</PRE>
<P>
This class contains EXSLT dates and times extension functions.
It is accessed by specifying a namespace URI as follows:
<pre>
xmlns:datetime="http://exslt.org/dates-and-times"
</pre>
The documentation for each function has been copied from the relevant
EXSLT Implementer page.
<P>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="http://www.exslt.org/">EXSLT</a></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#d">d</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dt">dt</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#EMPTY_STR">EMPTY_STR</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#gd">gd</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#gm">gm</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#gmd">gmd</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#gy">gy</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#gym">gym</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#t">t</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#ExsltDatetime()">ExsltDatetime</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#date()">date</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#date(java.lang.String)">date</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:date function returns the date specified in the date/time string given
as the argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dateTime()">dateTime</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:date-time function returns the current date and time as a date/time string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayAbbreviation()">dayAbbreviation</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayAbbreviation(java.lang.String)">dayAbbreviation</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:day-abbreviation function returns the abbreviation of the day
of the week of a date.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayInMonth()">dayInMonth</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayInMonth(java.lang.String)">dayInMonth</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:day-in-month function returns the day of a date as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayInWeek()">dayInWeek</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayInWeek(java.lang.String)">dayInWeek</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:day-in-week function returns the day of the week given in a
date as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayInYear()">dayInYear</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayInYear(java.lang.String)">dayInYear</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:day-in-year function returns the day of a date in a year
as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayName()">dayName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayName(java.lang.String)">dayName</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:day-name function returns the full name of the day of the week
of a date.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayOfWeekInMonth()">dayOfWeekInMonth</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#dayOfWeekInMonth(java.lang.String)">dayOfWeekInMonth</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:day-of-week-in-month function returns the day-of-the-week
in a month of a date as a number (e.g.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#formatDate(java.lang.String, java.lang.String)">formatDate</A></B>(java.lang.String&nbsp;dateTime,
java.lang.String&nbsp;pattern)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:format-date function formats a date/time according to a pattern.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#formatDigits(int)">formatDigits</A></B>(int&nbsp;q)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Represent the hours and minutes with two-digit strings.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#getEraDatetimeZone(java.lang.String)">getEraDatetimeZone</A></B>(java.lang.String&nbsp;in)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array with the 3 components that a datetime input string
may contain: - (for BC era), datetime, and zone.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#getNameOrAbbrev(java.lang.String)">getNameOrAbbrev</A></B>(java.lang.String&nbsp;format)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the full name or abbreviation for the current month or day
(no input string).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#getNameOrAbbrev(java.lang.String, java.lang.String[], java.lang.String)">getNameOrAbbrev</A></B>(java.lang.String&nbsp;in,
java.lang.String[]&nbsp;formatsIn,
java.lang.String&nbsp;formatOut)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the full name or abbreviation of the month or day.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#getNumber(java.lang.String, java.lang.String[], int)">getNumber</A></B>(java.lang.String&nbsp;in,
java.lang.String[]&nbsp;formats,
int&nbsp;calField)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the input string and return the corresponding calendar field
number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#getZoneStart(java.lang.String)">getZoneStart</A></B>(java.lang.String&nbsp;datetime)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the start of zone information if the input ends
with 'Z' or +/-hh:mm.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#hourInDay()">hourInDay</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#hourInDay(java.lang.String)">hourInDay</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:hour-in-day function returns the hour of the day as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#leapYear()">leapYear</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../org/apache/xpath/objects/XObject.html" title="class in org.apache.xpath.objects">XObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#leapYear(java.lang.String)">leapYear</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:leap-year function returns true if the year given in a date
is a leap year.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#minuteInHour()">minuteInHour</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#minuteInHour(java.lang.String)">minuteInHour</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:minute-in-hour function returns the minute of the hour
as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#monthAbbreviation()">monthAbbreviation</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#monthAbbreviation(java.lang.String)">monthAbbreviation</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:month-abbreviation function returns the abbreviation of the month of
a date.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#monthInYear()">monthInYear</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#monthInYear(java.lang.String)">monthInYear</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:month-in-year function returns the month of a date as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#monthName()">monthName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#monthName(java.lang.String)">monthName</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:month-name function returns the full name of the month of a date.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#secondInMinute()">secondInMinute</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#secondInMinute(java.lang.String)">secondInMinute</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:second-in-minute function returns the second of the minute
as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#strip(java.lang.String, java.lang.String)">strip</A></B>(java.lang.String&nbsp;symbols,
java.lang.String&nbsp;pattern)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Strips occurrences of the given character from a date format pattern.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.util.Date</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#testFormats(java.lang.String, java.lang.String[])">testFormats</A></B>(java.lang.String&nbsp;in,
java.lang.String[]&nbsp;formats)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempt to parse an input string with the allowed formats, returning
null if none of the formats work.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#time()">time</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#time(java.lang.String)">time</A></B>(java.lang.String&nbsp;timeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:time function returns the time specified in the date/time string given
as the argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#weekInYear()">weekInYear</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#weekInYear(java.lang.String)">weekInYear</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:week-in-year function returns the week of the year as a number.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#year()">year</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See above.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xalan/lib/ExsltDatetime.html#year(java.lang.String)">year</A></B>(java.lang.String&nbsp;datetimeIn)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The date:year function returns the year of a date as a number.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="dt"><!-- --></A><H3>
dt</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.53"><B>dt</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.dt">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="d"><!-- --></A><H3>
d</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.54"><B>d</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.d">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="gym"><!-- --></A><H3>
gym</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.55"><B>gym</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.gym">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="gy"><!-- --></A><H3>
gy</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.56"><B>gy</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.gy">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="gmd"><!-- --></A><H3>
gmd</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.57"><B>gmd</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.gmd">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="gm"><!-- --></A><H3>
gm</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.58"><B>gm</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.gm">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="gd"><!-- --></A><H3>
gd</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.59"><B>gd</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.gd">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="t"><!-- --></A><H3>
t</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.60"><B>t</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.t">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="EMPTY_STR"><!-- --></A><H3>
EMPTY_STR</H3>
<PRE>
static final java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.61"><B>EMPTY_STR</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xalan.lib.ExsltDatetime.EMPTY_STR">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="ExsltDatetime()"><!-- --></A><H3>
ExsltDatetime</H3>
<PRE>
public <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.50"><B>ExsltDatetime</B></A>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="dateTime()"><!-- --></A><H3>
dateTime</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.76"><B>dateTime</B></A>()</PRE>
<DL>
<DD>The date:date-time function returns the current date and time as a date/time string.
The date/time string that's returned must be a string in the format defined as the
lexical representation of xs:dateTime in
<a href="http://www.w3.org/TR/xmlschema-2/#dateTime">[3.2.7 dateTime]</a> of
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The date/time format is basically CCYY-MM-DDThh:mm:ss, although implementers should consult
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a> and
<a href="http://www.iso.ch/markete/8601.pdf">[ISO 8601]</a> for details.
The date/time string format must include a time zone, either a Z to indicate Coordinated
Universal Time or a + or - followed by the difference between the difference from UTC
represented as hh:mm.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="formatDigits(int)"><!-- --></A><H3>
formatDigits</H3>
<PRE>
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.108"><B>formatDigits</B></A>(int&nbsp;q)</PRE>
<DL>
<DD>Represent the hours and minutes with two-digit strings.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>q</CODE> - hrs or minutes.
<DT><B>Returns:</B><DD>two-digit String representation of hrs or minutes.</DL>
</DD>
</DL>
<HR>
<A NAME="date(java.lang.String)"><!-- --></A><H3>
date</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.135"><B>date</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:date function returns the date specified in the date/time string given
as the argument. If no argument is given, then the current local date/time, as
returned by date:date-time is used as a default argument.
The date/time string that's returned must be a string in the format defined as the
lexical representation of xs:dateTime in
<a href="http://www.w3.org/TR/xmlschema-2/#dateTime">[3.2.7 dateTime]</a> of
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
If the argument is not in either of these formats, date:date returns an empty string ('').
The date/time format is basically CCYY-MM-DDThh:mm:ss, although implementers should consult
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a> and
<a href="http://www.iso.ch/markete/8601.pdf">[ISO 8601]</a> for details.
The date is returned as a string with a lexical representation as defined for xs:date in
[3.2.9 date] of [XML Schema Part 2: Datatypes]. The date format is basically CCYY-MM-DD,
although implementers should consult [XML Schema Part 2: Datatypes] and [ISO 8601] for details.
If no argument is given or the argument date/time specifies a time zone, then the date string
format must include a time zone, either a Z to indicate Coordinated Universal Time or a + or -
followed by the difference between the difference from UTC represented as hh:mm. If an argument
is specified and it does not specify a time zone, then the date string format must not include
a time zone.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="date()"><!-- --></A><H3>
date</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.163"><B>date</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="time(java.lang.String)"><!-- --></A><H3>
time</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.193"><B>time</B></A>(java.lang.String&nbsp;timeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:time function returns the time specified in the date/time string given
as the argument. If no argument is given, then the current local date/time, as
returned by date:date-time is used as a default argument.
The date/time string that's returned must be a string in the format defined as the
lexical representation of xs:dateTime in
<a href="http://www.w3.org/TR/xmlschema-2/#dateTime">[3.2.7 dateTime]</a> of
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
If the argument string is not in this format, date:time returns an empty string ('').
The date/time format is basically CCYY-MM-DDThh:mm:ss, although implementers should consult
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a> and
<a href="http://www.iso.ch/markete/8601.pdf">[ISO 8601]</a> for details.
The date is returned as a string with a lexical representation as defined for xs:time in
<a href="http://www.w3.org/TR/xmlschema-2/#time">[3.2.8 time]</a> of [XML Schema Part 2: Datatypes].
The time format is basically hh:mm:ss, although implementers should consult [XML Schema Part 2:
Datatypes] and [ISO 8601] for details.
If no argument is given or the argument date/time specifies a time zone, then the time string
format must include a time zone, either a Z to indicate Coordinated Universal Time or a + or -
followed by the difference between the difference from UTC represented as hh:mm. If an argument
is specified and it does not specify a time zone, then the time string format must not include
a time zone.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="time()"><!-- --></A><H3>
time</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.214"><B>time</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="year(java.lang.String)"><!-- --></A><H3>
year</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.243"><B>year</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:year function returns the year of a date as a number. If no
argument is given, then the current local date/time, as returned by
date:date-time is used as a default argument.
The date/time string specified as the first argument must be a right-truncated
string in the format defined as the lexical representation of xs:dateTime in one
of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
xs:gYearMonth (CCYY-MM)
xs:gYear (CCYY)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="year()"><!-- --></A><H3>
year</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.263"><B>year</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="monthInYear(java.lang.String)"><!-- --></A><H3>
monthInYear</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.285"><B>monthInYear</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:month-in-year function returns the month of a date as a number. If no argument
is given, then the current local date/time, as returned by date:date-time is used
as a default argument.
The date/time string specified as the first argument is a left or right-truncated
string in the format defined as the lexical representation of xs:dateTime in one of
the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
xs:gYearMonth (CCYY-MM)
xs:gMonth (--MM--)
xs:gMonthDay (--MM-DD)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="monthInYear()"><!-- --></A><H3>
monthInYear</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.300"><B>monthInYear</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="weekInYear(java.lang.String)"><!-- --></A><H3>
weekInYear</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.319"><B>weekInYear</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:week-in-year function returns the week of the year as a number. If no argument
is given, then the current local date/time, as returned by date:date-time is used as the
default argument. For the purposes of numbering, counting follows ISO 8601: week 1 in a year
is the week containing the first Thursday of the year, with new weeks beginning on a Monday.
The date/time string specified as the argument is a right-truncated string in the format
defined as the lexical representation of xs:dateTime in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>. The
permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="weekInYear()"><!-- --></A><H3>
weekInYear</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.334"><B>weekInYear</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dayInYear(java.lang.String)"><!-- --></A><H3>
dayInYear</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.353"><B>dayInYear</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:day-in-year function returns the day of a date in a year
as a number. If no argument is given, then the current local
date/time, as returned by date:date-time is used the default argument.
The date/time string specified as the argument is a right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="dayInYear()"><!-- --></A><H3>
dayInYear</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.368"><B>dayInYear</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dayInMonth(java.lang.String)"><!-- --></A><H3>
dayInMonth</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.390"><B>dayInMonth</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:day-in-month function returns the day of a date as a number.
If no argument is given, then the current local date/time, as returned
by date:date-time is used the default argument.
The date/time string specified as the argument is a left or right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
xs:gMonthDay (--MM-DD)
xs:gDay (---DD)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="dayInMonth()"><!-- --></A><H3>
dayInMonth</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.403"><B>dayInMonth</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dayOfWeekInMonth(java.lang.String)"><!-- --></A><H3>
dayOfWeekInMonth</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.423"><B>dayOfWeekInMonth</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:day-of-week-in-month function returns the day-of-the-week
in a month of a date as a number (e.g. 3 for the 3rd Tuesday in May).
If no argument is given, then the current local date/time, as returned
by date:date-time is used the default argument.
The date/time string specified as the argument is a right-truncated string
in the format defined as the lexical representation of xs:dateTime in one
of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="dayOfWeekInMonth()"><!-- --></A><H3>
dayOfWeekInMonth</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.438"><B>dayOfWeekInMonth</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dayInWeek(java.lang.String)"><!-- --></A><H3>
dayInWeek</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.459"><B>dayInWeek</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:day-in-week function returns the day of the week given in a
date as a number. If no argument is given, then the current local date/time,
as returned by date:date-time is used the default argument.
The date/time string specified as the argument is a right-truncated string
in the format defined as the lexical representation of xs:dateTime in one
of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
If the date/time string is not in one of these formats, then NaN is returned.
The numbering of days of the week starts at 1 for Sunday, 2 for Monday and so on up to 7 for Saturday.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="dayInWeek()"><!-- --></A><H3>
dayInWeek</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.474"><B>dayInWeek</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="hourInDay(java.lang.String)"><!-- --></A><H3>
hourInDay</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.493"><B>hourInDay</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:hour-in-day function returns the hour of the day as a number.
If no argument is given, then the current local date/time, as returned
by date:date-time is used the default argument.
The date/time string specified as the argument is a right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:time (hh:mm:ss)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="hourInDay()"><!-- --></A><H3>
hourInDay</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.508"><B>hourInDay</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="minuteInHour(java.lang.String)"><!-- --></A><H3>
minuteInHour</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.527"><B>minuteInHour</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:minute-in-hour function returns the minute of the hour
as a number. If no argument is given, then the current local
date/time, as returned by date:date-time is used the default argument.
The date/time string specified as the argument is a right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:time (hh:mm:ss)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="minuteInHour()"><!-- --></A><H3>
minuteInHour</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.542"><B>minuteInHour</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="secondInMinute(java.lang.String)"><!-- --></A><H3>
secondInMinute</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.561"><B>secondInMinute</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:second-in-minute function returns the second of the minute
as a number. If no argument is given, then the current local
date/time, as returned by date:date-time is used the default argument.
The date/time string specified as the argument is a right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:time (hh:mm:ss)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="secondInMinute()"><!-- --></A><H3>
secondInMinute</H3>
<PRE>
public static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.576"><B>secondInMinute</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="leapYear(java.lang.String)"><!-- --></A><H3>
leapYear</H3>
<PRE>
public static <A HREF="../../../../org/apache/xpath/objects/XObject.html" title="class in org.apache.xpath.objects">XObject</A> <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.597"><B>leapYear</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:leap-year function returns true if the year given in a date
is a leap year. If no argument is given, then the current local
date/time, as returned by date:date-time is used as a default argument.
The date/time string specified as the first argument must be a
right-truncated string in the format defined as the lexical representation
of xs:dateTime in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
xs:gYearMonth (CCYY-MM)
xs:gYear (CCYY)
If the date/time string is not in one of these formats, then NaN is returned.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="leapYear()"><!-- --></A><H3>
leapYear</H3>
<PRE>
public static boolean <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.616"><B>leapYear</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="monthName(java.lang.String)"><!-- --></A><H3>
monthName</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.642"><B>monthName</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:month-name function returns the full name of the month of a date.
If no argument is given, then the current local date/time, as returned by
date:date-time is used the default argument.
The date/time string specified as the argument is a left or right-truncated
string in the format defined as the lexical representation of xs:dateTime in
one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
xs:gYearMonth (CCYY-MM)
xs:gMonth (--MM--)
If the date/time string is not in one of these formats, then an empty string ('')
is returned.
The result is an English month name: one of 'January', 'February', 'March',
'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November'
or 'December'.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="monthName()"><!-- --></A><H3>
monthName</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.658"><B>monthName</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="monthAbbreviation(java.lang.String)"><!-- --></A><H3>
monthAbbreviation</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.684"><B>monthAbbreviation</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:month-abbreviation function returns the abbreviation of the month of
a date. If no argument is given, then the current local date/time, as returned
by date:date-time is used the default argument.
The date/time string specified as the argument is a left or right-truncated
string in the format defined as the lexical representation of xs:dateTime in
one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
xs:gYearMonth (CCYY-MM)
xs:gMonth (--MM--)
If the date/time string is not in one of these formats, then an empty string ('')
is returned.
The result is a three-letter English month abbreviation: one of 'Jan', 'Feb', 'Mar',
'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov' or 'Dec'.
An implementation of this extension function in the EXSLT date namespace must conform
to the behaviour described in this document.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="monthAbbreviation()"><!-- --></A><H3>
monthAbbreviation</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.700"><B>monthAbbreviation</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dayName(java.lang.String)"><!-- --></A><H3>
dayName</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.724"><B>dayName</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:day-name function returns the full name of the day of the week
of a date. If no argument is given, then the current local date/time,
as returned by date:date-time is used the default argument.
The date/time string specified as the argument is a left or right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
If the date/time string is not in one of these formats, then the empty string ('')
is returned.
The result is an English day name: one of 'Sunday', 'Monday', 'Tuesday', 'Wednesday',
'Thursday' or 'Friday'.
An implementation of this extension function in the EXSLT date namespace must conform
to the behaviour described in this document.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="dayName()"><!-- --></A><H3>
dayName</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.740"><B>dayName</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="dayAbbreviation(java.lang.String)"><!-- --></A><H3>
dayAbbreviation</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.764"><B>dayAbbreviation</B></A>(java.lang.String&nbsp;datetimeIn)
throws java.text.ParseException</PRE>
<DL>
<DD>The date:day-abbreviation function returns the abbreviation of the day
of the week of a date. If no argument is given, then the current local
date/time, as returned by date:date-time is used the default argument.
The date/time string specified as the argument is a left or right-truncated
string in the format defined as the lexical representation of xs:dateTime
in one of the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
xs:dateTime (CCYY-MM-DDThh:mm:ss)
xs:date (CCYY-MM-DD)
If the date/time string is not in one of these formats, then the empty string
('') is returned.
The result is a three-letter English day abbreviation: one of 'Sun', 'Mon', 'Tue',
'Wed', 'Thu' or 'Fri'.
An implementation of this extension function in the EXSLT date namespace must conform
to the behaviour described in this document.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="dayAbbreviation()"><!-- --></A><H3>
dayAbbreviation</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.780"><B>dayAbbreviation</B></A>()</PRE>
<DL>
<DD>See above.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getEraDatetimeZone(java.lang.String)"><!-- --></A><H3>
getEraDatetimeZone</H3>
<PRE>
private static java.lang.String[] <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.791"><B>getEraDatetimeZone</B></A>(java.lang.String&nbsp;in)</PRE>
<DL>
<DD>Returns an array with the 3 components that a datetime input string
may contain: - (for BC era), datetime, and zone. If the zone is not
valid, return null for that component.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getZoneStart(java.lang.String)"><!-- --></A><H3>
getZoneStart</H3>
<PRE>
private static int <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.819"><B>getZoneStart</B></A>(java.lang.String&nbsp;datetime)</PRE>
<DL>
<DD>Get the start of zone information if the input ends
with 'Z' or +/-hh:mm. If a zone string is not
found, return -1; if the zone string is invalid,
return -2.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="testFormats(java.lang.String, java.lang.String[])"><!-- --></A><H3>
testFormats</H3>
<PRE>
private static java.util.Date <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.849"><B>testFormats</B></A>(java.lang.String&nbsp;in,
java.lang.String[]&nbsp;formats)
throws java.text.ParseException</PRE>
<DL>
<DD>Attempt to parse an input string with the allowed formats, returning
null if none of the formats work.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getNumber(java.lang.String, java.lang.String[], int)"><!-- --></A><H3>
getNumber</H3>
<PRE>
private static double <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.872"><B>getNumber</B></A>(java.lang.String&nbsp;in,
java.lang.String[]&nbsp;formats,
int&nbsp;calField)
throws java.text.ParseException</PRE>
<DL>
<DD>Parse the input string and return the corresponding calendar field
number.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getNameOrAbbrev(java.lang.String, java.lang.String[], java.lang.String)"><!-- --></A><H3>
getNameOrAbbrev</H3>
<PRE>
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.887"><B>getNameOrAbbrev</B></A>(java.lang.String&nbsp;in,
java.lang.String[]&nbsp;formatsIn,
java.lang.String&nbsp;formatOut)
throws java.text.ParseException</PRE>
<DL>
<DD>Get the full name or abbreviation of the month or day.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getNameOrAbbrev(java.lang.String)"><!-- --></A><H3>
getNameOrAbbrev</H3>
<PRE>
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.912"><B>getNameOrAbbrev</B></A>(java.lang.String&nbsp;format)</PRE>
<DL>
<DD>Get the full name or abbreviation for the current month or day
(no input string).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="formatDate(java.lang.String, java.lang.String)"><!-- --></A><H3>
formatDate</H3>
<PRE>
public static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.955"><B>formatDate</B></A>(java.lang.String&nbsp;dateTime,
java.lang.String&nbsp;pattern)</PRE>
<DL>
<DD>The date:format-date function formats a date/time according to a pattern.
<p>
The first argument to date:format-date specifies the date/time to be
formatted. It must be right or left-truncated date/time strings in one of
the formats defined in
<a href="http://www.w3.org/TR/xmlschema-2/">[XML Schema Part 2: Datatypes]</a>.
The permitted formats are as follows:
<ul>
<li>xs:dateTime (CCYY-MM-DDThh:mm:ss)
<li>xs:date (CCYY-MM-DD)
<li>xs:time (hh:mm:ss)
<li>xs:gYearMonth (CCYY-MM)
<li>xs:gYear (CCYY)
<li>xs:gMonthDay (--MM-DD)
<li>xs:gMonth (--MM--)
<li>xs:gDay (---DD)
</ul>
The second argument is a string that gives the format pattern used to
format the date. The format pattern must be in the syntax specified by
the JDK 1.1 SimpleDateFormat class. The format pattern string is
interpreted as described for the JDK 1.1 SimpleDateFormat class.
<p>
If the date/time format is right-truncated (i.e. in a format other than
xs:time, or xs:dateTime) then any missing components are assumed to be as
follows: if no month is specified, it is given a month of 01; if no day
is specified, it is given a day of 01; if no time is specified, it is
given a time of 00:00:00.
<p>
If the date/time format is left-truncated (i.e. xs:time, xs:gMonthDay,
xs:gMonth or xs:gDay) and the format pattern has a token that uses a
component that is missing from the date/time format used, then that token
is replaced with an empty string ('') within the result.
The author is Helg Bredow (helg.bredow@kalido.com)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="strip(java.lang.String, java.lang.String)"><!-- --></A><H3>
strip</H3>
<PRE>
private static java.lang.String <A HREF="../../../../src-html/org/apache/xalan/lib/ExsltDatetime.html#line.1084"><B>strip</B></A>(java.lang.String&nbsp;symbols,
java.lang.String&nbsp;pattern)</PRE>
<DL>
<DD>Strips occurrences of the given character from a date format pattern.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>symbols</CODE> - list of symbols to strip.<DD><CODE>pattern</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ExsltDatetime.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/xalan/lib/ExsltCommon.html" title="class in org.apache.xalan.lib"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xalan/lib/ExsltDynamic.html" title="class in org.apache.xalan.lib"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xalan/lib/ExsltDatetime.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ExsltDatetime.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>