<?xml version="1.0" encoding="iso-8859-1"?>
<module name="Ft.Xml.Xslt.Exslt.DateTime" file="/work/a/ports/textproc/py-4suite-xml/work/4Suite-1.0b3/build/lib.freebsd-6.1-PRERELEASE-i386-2.4/Ft/Xml/Xslt/Exslt/DateTime.py">
  <modification-date>2003-09-16 00:09:57</modification-date>
  <abstract>Implementation of EXSLT Dates and Times module</abstract>
  <description>Copyright 2003 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/</description>
  <classes>
    <class name="DateFormatElement" public="yes">
      <bases>
        <base documented="yes" class="XsltElement" module="Ft.Xml.Xslt.StylesheetTree"/>
      </bases>
      <abstract/>
      <description/>
      <method-resolution-order>
        <base name="DateFormatElement" module="Ft.Xml.Xslt.Exslt.DateTime"/>
        <base name="XsltElement" module="Ft.Xml.Xslt.StylesheetTree"/>
        <base name="XsltNode" module="Ft.Xml.Xslt.StylesheetTree"/>
      </method-resolution-order>
      <inherited-methods documented="yes" class="XsltElement" module="Ft.Xml.Xslt.StylesheetTree">
        <member-reference name="__init__" public="no"/>
        <member-reference name="__str__" public="no"/>
        <member-reference name="appendChild" public="yes"/>
        <member-reference name="expandQName" public="yes"/>
        <member-reference name="insertChild" public="yes"/>
        <member-reference name="instantiate" public="yes"/>
        <member-reference name="parseAVT" public="yes"/>
        <member-reference name="parseExpression" public="yes"/>
        <member-reference name="parsePattern" public="yes"/>
        <member-reference name="processChildren" public="yes"/>
        <member-reference name="splitQName" public="yes"/>
      </inherited-methods>
      <inherited-members documented="yes" class="XsltElement" module="Ft.Xml.Xslt.StylesheetTree">
        <member-reference name="category" public="yes"/>
        <member-reference name="content" public="yes"/>
        <member-reference name="legalAttrs" public="yes"/>
        <member-reference name="validator" public="yes"/>
      </inherited-members>
      <inherited-methods documented="yes" class="XsltNode" module="Ft.Xml.Xslt.StylesheetTree">
        <member-reference name="idle" public="yes"/>
        <member-reference name="isLastChild" public="yes"/>
        <member-reference name="isPseudoNode" public="yes"/>
        <member-reference name="pprint" public="yes"/>
        <member-reference name="prime" public="yes"/>
        <member-reference name="setup" public="yes"/>
      </inherited-methods>
      <inherited-members documented="yes" class="XsltNode" module="Ft.Xml.Xslt.StylesheetTree">
        <member-reference name="attributes" public="yes"/>
        <member-reference name="baseUri" public="yes"/>
        <member-reference name="children" public="yes"/>
        <member-reference name="columnNumber" public="yes"/>
        <member-reference name="doesIdle" public="yes"/>
        <member-reference name="doesPrime" public="yes"/>
        <member-reference name="doesSetup" public="yes"/>
        <member-reference name="expandedName" public="yes"/>
        <member-reference name="importIndex" public="yes"/>
        <member-reference name="lineNumber" public="yes"/>
        <member-reference name="nodeName" public="yes"/>
        <member-reference name="parent" public="yes"/>
        <member-reference name="root" public="yes"/>
      </inherited-members>
    </class>
  </classes>
  <functions>
    <function public="yes" name="Add" id="Add">
      <abstract>The date:add function returns the result of adding a duration
to a dateTime.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="dateTime"/>
        <arg name="duration"/>
      </arguments>
    </function>
    <function public="yes" name="AddDuration" id="AddDuration">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="duration1"/>
        <arg name="duration2"/>
      </arguments>
    </function>
    <function public="yes" name="Date" id="Date">
      <abstract>The date:date function returns the date portion of the dateTime
argument if present, or of the current local date/time. The
argument can be given in xs:dateTime or xs:date format.</abstract>
      <description>Non-conformance issues: The dateTime argument must be given in
ISO 8601 date/time or date format, so an xs:date format with a
time zone is not supported. Also, EXSLT requires that the result
must include a time zone unless there was an argument given and
it did not have a time zone. If a date/time argument is given,
this implementation returns the date with no time zone info.</description>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="DateTime" id="DateTime">
      <abstract>The date:date-time function returns the current local date/time as an
ISO 8601 formatted date/time string, with a time zone.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
      </arguments>
    </function>
    <function public="yes" name="DayAbbreviation" id="DayAbbreviation">
      <abstract>The date:day-abbreviation function returns the English abbreviation
for the day name of a given date.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="DayInMonth" id="DayInMonth">
      <abstract>The date:day-in-month function returns the numerical date, i.e.
27 for the 27th of March.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="DayInWeek" id="DayInWeek">
      <abstract>The date:day-in-week function returns a number representing the
weekday of a given date. Sunday is 1, Saturday is 7.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="DayInYear" id="DayInYear">
      <abstract>The date:day-in-year function returns a number representing
the position of a date in the year.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="DayName" id="DayName">
      <abstract>The date:day-name function returns the full English day name of
a given date.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="DayOfWeekInMonth" id="DayOfWeekInMonth">
      <abstract>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).</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="Difference" id="Difference">
      <abstract>The date:difference function returns the difference between dt1
and dt2 as a duration in string form.</abstract>
      <description>According to the spec (http://exslt.org/date/functions/difference/index.html)

&quot;If the date/time string with the least specific format is in either
xs:gYearMonth or xs:gYear format, then the number of days, hours,
minutes and seconds in the duration string must be equal to zero.
(The format of the string will be PnYnM.) The number of months
specified in the duration must be less than 12.&quot;

&quot;Otherwise, the number of years and months in the duration string
must be equal to zero. (The format of the string will be PnDTnHnMnS.)
The number of seconds specified in the duration string must be less
than 60; the number of minutes must be less than 60; the number of
hours must be less than 24.&quot;

This method does not account for leap seconds, so you
should not expect precise results over long time spans.</description>
      <arguments>
        <arg name="context"/>
        <arg name="dateTime1"/>
        <arg name="dateTime2"/>
      </arguments>
    </function>
    <function public="yes" name="Duration" id="Duration">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="seconds"/>
      </arguments>
    </function>
    <function public="yes" name="FormatDate" id="FormatDate">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="dateTime"/>
        <arg name="pattern"/>
      </arguments>
    </function>
    <function public="yes" name="HourInDay" id="HourInDay">
      <abstract>The date:hour-in-date function returns the hour portion of a date-
time string as an integer.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="LeapYear" id="LeapYear">
      <abstract>The date:leap-year function returns true if the year argument
(defaults to current year) is a leap year, false otherwise.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="MinuteInHour" id="MinuteInHour">
      <abstract>The date:minute-in-hour function returns the minute portion of a
date-time string as an integer.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="MonthAbbreviation" id="MonthAbbreviation">
      <abstract>The date:month-abbreviation function returns the abbreviation
of the month of a date.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="MonthInYear" id="MonthInYear">
      <abstract>The date:month-in-year function returns the month portion of
the dateTime argument (defaults to current year) as an integer.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="MonthName" id="MonthName">
      <abstract>The date:month-name function returns the full English name
of the month portion of a date.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="ParseDate" id="ParseDate">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="dateString"/>
        <arg name="pattern"/>
      </arguments>
    </function>
    <function public="yes" name="SecondInMinute" id="SecondInMinute">
      <abstract>The date:second-in-minute function returns the seconds portion
of a date-time string as an integer.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="Seconds" id="Seconds">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="dateOrDuration"/>
      </arguments>
    </function>
    <function public="yes" name="SecondsFromDate" id="SecondsFromDate">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="date"/>
      </arguments>
    </function>
    <function public="yes" name="SecondsFromDuration" id="SecondsFromDuration">
      <abstract/>
      <description/>
      <arguments>
        <arg name="duration"/>
      </arguments>
    </function>
    <function public="yes" name="Sum" id="Sum">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg name="nodeset"/>
      </arguments>
    </function>
    <function public="yes" name="Time" id="Time">
      <abstract>The date:time function returns the time portion of the dateTime
argument if present, or of the current local date/time. The
argument can be given in xs:dateTime or xs:time format.</abstract>
      <description>Non-conformance issue: EXSLT requires that the result must include
a time zone unless there was an argument given and it did not have
a time zone. If an argument is given, this implementation returns
the result with time zone info, always.</description>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="WeekInMonth" id="WeekInMonth">
      <abstract/>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="WeekInYear" id="WeekInYear">
      <abstract>The date:week-in-year function returns a number representing
the week of the year a date is in.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="yes" name="Year" id="Year">
      <abstract>The date:year function returns the year portion of the
dateTime supplied, or of the current year, as an integer.</abstract>
      <description/>
      <arguments>
        <arg name="context"/>
        <arg default="None" name="dateTime"/>
      </arguments>
    </function>
    <function public="no" name="_coerce" id="_coerce">
      <abstract>## Utility functions for internal use</abstract>
      <description/>
      <arguments>
        <arg name="dateTime"/>
      </arguments>
    </function>
    <function public="no" name="_moLen" id="_moLen">
      <abstract/>
      <description/>
      <arguments>
        <arg name="year"/>
        <arg name="month"/>
      </arguments>
    </function>
    <function public="no" name="_strptime" id="_strptime">
      <abstract/>
      <description/>
      <arguments>
        <arg name="time"/>
        <arg name="format"/>
      </arguments>
    </function>
    <function public="no" name="_strptimeJava" id="_strptimeJava">
      <abstract/>
      <description/>
      <arguments>
        <arg name="time"/>
        <arg name="format"/>
      </arguments>
    </function>
  </functions>
  <globals>
    <global public="yes" name="EXSL_DATE_TIME_NS" id="EXSL_DATE_TIME_NS">
      <value>'http://exslt.org/dates-and-times'</value>
    </global>
    <global public="yes" name="ExtElements" id="ExtElements">
      <value>{}</value>
    </global>
    <global public="yes" name="ExtFunctions" id="ExtFunctions">
      <value>{('http://exslt.org/dates-and-times', 'add'): &lt;function Add&gt;, ('http://exslt.org/dates-and-times', 'date'): &lt;function Date&gt;, ('http://exslt.org/dates-and-times', 'date-time'): &lt;function DateTime&gt;, ('http://exslt.org/dates-and-times', 'day-abbreviation'): &lt;function DayAbbreviation&gt;, ('http://exslt.org/dates-and-times', 'day-in-month'): &lt;function DayInMonth&gt;, ('http://exslt.org/dates-and-times', 'day-in-week'): &lt;function DayInWeek&gt;, ('http://exslt.org/dates-and-times', 'day-in-year'): &lt;function DayInYear&gt;, ('http://exslt.org/dates-and-times', 'day-name'): &lt;function DayName&gt;, ('http://exslt.org/dates-and-times', 'day-of-week-in-month'): &lt;function DayOfWeekInMonth&gt;, ('http://exslt.org/dates-and-times', 'difference'): &lt;function Difference&gt;, ...}</value>
    </global>
    <global public="yes" name="ExtNamespaces" id="ExtNamespaces">
      <value>{'http://exslt.org/dates-and-times': 'date'}</value>
    </global>
    <global public="yes" name="ISO_8601_DATE" id="ISO_8601_DATE">
      <value>'%Y-%m-%d'</value>
    </global>
    <global public="yes" name="ISO_8601_DATETIME" id="ISO_8601_DATETIME">
      <value>'%Y-%m-%dT%H:%M:%S'</value>
    </global>
    <global public="yes" name="ISO_8601_TIME" id="ISO_8601_TIME">
      <value>'%H:%M:%S'</value>
    </global>
    <global public="yes" name="durationRE" id="durationRE">
      <abstract>Compiled regular expression objects</abstract>
      <description/>
      <value>&lt;_sre.SRE_Pattern object&gt;</value>
    </global>
  </globals>
</module>
