Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 763d6289e1351f2d34257ce697a3ccb7 > files > 1836

biopython-doc-1.47-2mdv2008.1.x86_64.rpm

<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Martel.Time</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Martel-module.html">Package&nbsp;Martel</a> ::
        Module&nbsp;Time
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Martel.Time-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module Time</h1><p class="nomargin-top"><span class="codelink"><a href="Martel.Time-pysrc.html">source&nbsp;code</a></span></p>
<pre class="literalblock">
Parse a time or date string.

Converts a strftime/strptime-like format string into a Martel regular
expression (either as a string or an Expression).

Example use:
  &gt;&gt;&gt; from Martel import Time
  &gt;&gt;&gt; from xml.sax import saxutils
  &gt;&gt;&gt; format = Time.make_expression(&quot;%(Jan)-%(day)-%(YYYY)
&quot;)
  &gt;&gt;&gt; parser = format.make_parser()
  &gt;&gt;&gt; parser.setContentHandler(saxutils.XMLGenerator())
  &gt;&gt;&gt; parser.parseString(&quot;OCT-31-2021\n&quot;)
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
  &lt;month type=&quot;short&quot;&gt;OCT&lt;/month&gt;-&lt;day type=&quot;numeric&quot;&gt;31&lt;/day&gt;-&lt;year type=&quot;long&quot;&gt;2021&lt;/year&gt;
  &gt;&gt;&gt;
  

Times and dates come up often in parsing.  It's usually pretty easily
to write a syntax for them on the fly.  For example, suppose you want
to parse a date in the format
  YYYY-MM-DD

as in &quot;1985-03-26&quot;.  One pattern for that is
  &quot;\d{4}-\d{2}-\d{2}&quot;

To get the individual fields in Martel requires group names.
  &quot;(?P&lt;year&gt;\d{4})-(?P&lt;month&gt;\d{2})-(?P&lt;day&gt;\d{2})&quot;

If you want some minimal verification (eg, to help make sure you
haven't accidentally swapped the day and month fields) you need to
tighten down on what values are allowed, as in
  &quot;(?P&lt;year&gt;\d{4})-(?P&lt;month&gt;0[1-9]|1[012])-(?P&lt;day&gt;0[1-9]|[12][0-9]|3[01])&quot;

The more you write, the more the likelihood of making a mistake, the
more the chance different format definitions use different patterns,
the harder it is to understand what's going on.

This module helps by providing a set of standard definitions for the
different terms needed in parsing dates, and a way to generate those
definitions from a relatively easy to understand format string.

The syntax of the format string is based on that used by the standard
unix strftime/strptime functions, with terms taken from the POSIX and
GNU documentation plus some experimentation.  These terms are in the
form &quot;%c&quot; where &quot;c&quot; is a single character.  It's hard to remember
everything through a not always mnemonic single character code, so
Martel.Time adds a new syntax of the form &quot;%(word)&quot; where word can be
one of the single characters, or a multicharacter word.  For example,
&quot;%(Mon)&quot; is identical to &quot;%a&quot; but easier to understand.

The complete list of definitions is given below.

The lowest-level terms (like &quot;year&quot;, but excluding terms like &quot;%D&quot;
which expand to other terms) are inside of named groups, which
generate the element tag and attributes when used for Martel.

For example, &quot;%m&quot; generates the pattern used for a month, from &quot;01&quot; to
&quot;12&quot;.  The name of the group is &quot;month&quot; and it has a single attribute
named &quot;type&quot; with value &quot;numeric&quot;.  (All &quot;numeric&quot; types can be parsed
with Python's 'int' function.)  The default pattern made from &quot;%m&quot; is

    (?P&lt;month?type=numeric&gt;(0[1-9]|1[012]))

and when parsed against a month value, like &quot;05&quot;, produces

    &lt;month type=&quot;numeric&quot;&gt;05&lt;/month&gt;

The &quot;type&quot; attribute is used because values which mean the same thing
can be represented in different formats.  The month &quot;January&quot; can be
represented with the word &quot;January&quot; (type = &quot;long&quot;), &quot;Jan&quot; (type =
&quot;short&quot;), &quot;01&quot; (type = &quot;numeric&quot;), &quot;1&quot; (type = &quot;numeric&quot;), or &quot; 1&quot;
(type = &quot;numeric&quot;).  [Note: It is possible that subtypes may be added
in the future to distinguish between these different numeric cases.]


FUNCTIONS:

There are two public functions -- &quot;make_pattern&quot; and
&quot;make_expression&quot;.  Both take the same parameters and return a regular
expression.

  make_pattern(format, tag_format = &quot;%s&quot;) -- returns the expression
       as a pattern string

  make_expression(format, tag_format = &quot;%s&quot;) -- returns the expression
       as a Martel.Expression data structure (which can be used to
       make a parser)

The first parameter, &quot;format&quot;, is the time format string already
discussed.  Some examples are:

  &gt;&gt;&gt; from Martel import Time
  &gt;&gt;&gt; Time.make_pattern(&quot;%y&quot;)
  '(?P&lt;year?type=short&gt;\\d{2})'
  &gt;&gt;&gt; Time.make_pattern(&quot;%H:%M&quot;)
  '(?P&lt;hour?type=24-hour&gt;([01][0-9]|2[0-3]))\\:(?P&lt;minute?type=numeric&gt;[0-5][0-9])'
  &gt;&gt;&gt;

The second parameter is used if you want to change the tag name.  For
example, instead of &quot;year&quot; you may want &quot;year-modified&quot; or
&quot;start-year&quot; -- or you may not want a tag at all.

For each term, the tag name (&quot;year&quot;, &quot;month&quot;, etc.) is %'ed with the
tag_format string.  The default string is &quot;%s&quot; which effectively says
to keep the name unchanged.  Here are a couple examples which use a
different string.

  &gt;&gt;&gt; from Martel import Time
  &gt;&gt;&gt; Time.make_pattern(&quot;%(year)&quot;, &quot;%s-modified&quot;)
  '(?P&lt;year-modified?type=any&gt;([0-9]{2}([0-9]{2})?))'
  &gt;&gt;&gt; Time.make_pattern(&quot;%(year)&quot;, &quot;start-%s&quot;)
  '(?P&lt;start-year?type=any&gt;([0-9]{2}([0-9]{2})?))'
  &gt;&gt;&gt; Time.make_pattern(&quot;%(year)&quot;, None)
  '([0-9]{2}([0-9]{2})?)'
  &gt;&gt;&gt;
  
The tag_format is used for every tag name, which lets you modify
several values at once.  You can even pass in an object which
implements the __mod__ method to make more drastic changes to the
name.

  &gt;&gt;&gt;  Time.make_pattern(&quot;%H:%M&quot;, &quot;%s-created&quot;)
  '(?P&lt;hour-created?type=24-hour&gt;([01][0-9]|2[0-3]))\\:(?P&lt;minute-created?type=numeric&gt;[0-5][0-9])'
  &gt;&gt;&gt; class Upcase:
  ...     def __mod__(self, name):
  ...         return name.upper()
  ...
  &gt;&gt;&gt; Time.make_pattern(&quot;%H:%M&quot;, Upcase())
  '(?P&lt;HOUR?type=24-hour&gt;([01][0-9]|2[0-3]))\:(?P&lt;MINUTE?type=numeric&gt;[0-5][0-9])'
  &gt;&gt;&gt;

BUGS:
Only the &quot;C&quot; locale (essentialy, US/English) is supported.  Field
widths (as in &quot;%-5d&quot;) are not supported.

There is no way to change the element attributes.  I'm not sure this
is a bug.

         ====  Table of Date/Time Specifiers ====

%a is replaced by the pattern for the abbreviated weekday name.
  Pattern: (Mon|Tue|Wed|Thu|Fri|Sat|Sun)
     (the real pattern is case insensitive)
  Example: &quot;Wed&quot; &quot;FRI&quot;
  Element name: &quot;weekday&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;
  Note: %(Mon) is the same as %a
  
%A is replaced by the pattern for the full weekday name.
  Pattern: (Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday)
     (the real pattern is case insensitive)
  Example: &quot;Thursday&quot; &quot;SUNDAY&quot;
  Element name: &quot;weekday&quot;
  Element attributes: &quot;type&quot; = &quot;long&quot;
  Note: %(Monday) is the same as %a

%b is replaced by the the pattern for the abbreviated month name.
  Pattern: (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
     (the real pattern is case insensitive)
  Example: &quot;Oct&quot; &quot;AUG&quot;
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;
  Note: %(Jan) is the same as %b
  
%B is replaced by the pattern for the full month name.
  Pattern: (January|February|March|April|May|June|July|August|
            September|October|November|December)
     (the real pattern is case insensitive)
  Example: &quot;August&quot;, &quot;MAY&quot;
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;long&quot;
  Note: %(January) is the same as %B

%c is replaced by the pattern for the US 24-hour date and time
   representation.
  Pattern: same as &quot;%a %b %e %T %Y&quot;
  Example: &quot;Wed Dec 12 19:57:22 2001&quot;
  Element: only uses names and attributes of the individual terms

%C is replaced by the pattern for the century number (the year divided
   by 100 and truncated to an integer) as a decimal number [00-99].
  Pattern: &quot;[0-9][0-9]&quot;
  Example: &quot;19&quot; for the years 1900 to 1999
  Element name: &quot;century&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;

%d is replaced by the pattern for a day of the month as a decimal
   number [01,31].
  Pattern: (0[1-9]|[12][0-9]|3[01])
  Example: &quot;01&quot;, &quot;12&quot;
  Element name: &quot;day&quot;
  Element attributes: &quot;type&quot;: &quot;numeric&quot;
  Note: &quot;%d&quot; does not include &quot; 1&quot; or &quot;1&quot;.  If you also want to allow
    those then use &quot;%(day)&quot;
  
%D same as the pattern for &quot;%m/%d/%y&quot;.
  Pattern: see &quot;%m/%d/%y&quot;.
  Example: &quot;12/13/01&quot;
  Element: only uses names and attributes of the individual terms
  
%e is replaced by the pattern for a day of the month as a decimal
   number [1,31]; a single digit is preceded by a space.
  Pattern: &quot;( [1-9]|[12][0-9]|3[01])&quot;
  Example: &quot; 1&quot;, &quot;31&quot;
  Element name: &quot;day&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;
  Note: &quot;%e&quot; does not include &quot;01&quot; or &quot;1&quot;.  If you also want to allow
    those then use &quot;%(day)&quot;
  
%F same as the pattern for &quot;%Y-%m-%d&quot;.
  Pattern: see &quot;%Y-%m-%d&quot;.
  Example: &quot;2001-12-21&quot;
  Element: only uses names and attributes of the individual terms

%g ISO 8601 2-digit (like %G but without the century) (00-99)
  Pattern: [0-9][0-9]
  Example: &quot;00&quot;
  Element name: &quot;century&quot;
  Element attributes: &quot;type&quot; = &quot;ISO8601&quot;

%G Pattern for the ISO 8601 year with century as a decimal number.
   The 4-digit year corresponding to the ISO week number (see %V).
   This has the same format and value as %y, except that if the ISO
   week number belongs to the previous or next year, that year is
   used instead. (TZ)
  Pattern: [0-9][0-9][0-9][0-9]
  Example: &quot;1954&quot; &quot;2001&quot;
  Element name: &quot;year&quot;
  Element attributes: &quot;type&quot; = &quot;ISO8601&quot;

%h (DEPRECATED) same as %b.  
  Pattern: (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
  Example: &quot;Feb&quot;
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;
  Note: %(Jan) is the same as %b is the same as %h
  
%H is replaced by the pattern for the hour on a 24-hour clock, as
   a decimal number [00,23].
  Pattern: ([01][0-9]|2[0-3])
  Example: &quot;00&quot;, &quot;01&quot;, &quot;23&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;24-hour&quot;
  Note: This does not allow single digit hours like &quot;1&quot;.  If you also
    want to include those, use %(24-hour)
  
%I is replaced by the pattern for the hour on a 12-hour clock, as
   a decimal number [01,12].
  Pattern: (0[0-9]|1[012])
  Example: &quot;01&quot;, &quot;12&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;12-hour&quot;
  Note: This does not allow single digit hours like &quot;1&quot;.  If you also
    want to include those, use %(12-hour)
  
%j is replaced by the pattern for day of the year as a decimal
   number.  First day is numbered &quot;001&quot; [001,366].
  Pattern: &quot;([12][0-9][0-9]|3([012345][0-9]|6[0-6])|0(0[1-9]|[1-9][0-9]))&quot;
  Example: &quot;001&quot;, &quot;092&quot;, &quot;362&quot;
  Element name: &quot;year_day&quot;
  Element attributes: &quot;type&quot;: &quot;1&quot;

%k is replaced by the pattern for the hour on a 24-hour clock, as a
   decimal number (range 0 to 23); single digits are preceded by a
   blank.
  Pattern: &quot;( [0-9]|1[0-9]|2[0123])&quot;
  Example: &quot; 1&quot;, &quot;10&quot;, &quot;23&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;24-hour&quot;
  Note: This does not allow single digit hours like &quot;1&quot; or hours which
    start with an &quot;0&quot; like &quot;03&quot;.  If you also want to include those,
    use %(24-hour).  See also %H.

%l is replaced by the pattern for the hour on a 12-hour clock, as a
   decimal number (range 1 to 12); single digits are preceded by a
   blank.
  Pattern: &quot;( [0-9]|1[012])&quot;
  Example: &quot; 1&quot;, &quot;10&quot;, &quot;12&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;12-hour&quot;
  Note: This does not allow single digit hours like &quot;1&quot; or hours which
    start with an &quot;0&quot; like &quot;03&quot;.  If you also want to include those,
    use %(12-hour).  See also %I.

%m is replaced by the pattern for the month as a decimal number [01,12].
  Pattern: &quot;(0[1-9]|1[012])&quot;
  Example: &quot;01&quot;, &quot;09&quot;, &quot;12&quot;
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;
  Note: This does not allow single digit months like &quot;1&quot; or months which
    start with an space like &quot; 3&quot;.  If you also want to include those,
    use %(month).  See also %(DD), which is an alias for %m.
  
%M is replaced by the pattern for the minute as a decimal number [00,59].
  Pattern: &quot;[0-5][0-9]&quot;
  Example: &quot;00&quot;, &quot;38&quot;
  Element name: &quot;minute&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;
  Note: this is the same as %(minute)
  
%n is replaced by the pattern for the newline character.
  Pattern: &quot;\n&quot;
  Note: you shouldn't need to use this

%p is replaced by the case insensitive pattern for &quot;AM&quot; or &quot;PM&quot;
  Pattern: &quot;([AaPp][Mm])&quot;
  Example: &quot;AM&quot;, &quot;pm&quot;
  Element name: &quot;ampm&quot;
  Element attributes: no attributes
  Note: this doesn't allow &quot;a.m.&quot; or &quot;P.M.&quot;
  
%P is identical to &quot;%p&quot; (they have slightly different meanings for output)
  Pattern: &quot;([AaPp][Mm])&quot;
  Example: &quot;am&quot;, &quot;PM&quot;
  Element name: &quot;ampm&quot;
  Element attributes: no attributes
  Note: this doesn't allow &quot;a.m.&quot; or &quot;P.M.&quot;

%r is equivalent to &quot;%I:%M:%S %p&quot;.
  Pattern: see the patterns for the individual terms
  Example: &quot;07:57:22 PM&quot;
  Element: only uses names and attributes of the individual terms
  
%R is the pattern for the 24 hour notation &quot;%H:%M&quot;.
  Pattern: see the patterns for the individual terms
  Example: &quot;19:57&quot;
  Element: only uses names and attributes of the individual terms
  
%s is pattern for a decimal number of seconds (Unix timestamp)
  Pattern: &quot;[0-9]+&quot;
  Example: &quot;1008205042&quot;
  Element name: &quot;timestamp&quot;
  Element attributes: no attributes
  
%S is replaced by the pattern for the second as a decimal number
   Can take values from &quot;00&quot; to &quot;61&quot; (includes double leap seconds).
  Pattern: &quot;([0-5][0-9]|6[01])&quot;
  Example: &quot;03&quot;, &quot;25&quot;
  Element name: &quot;second&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;
  Note: This is the same as %(second)
  
%t is replaced by a tab character. (plat-spec)
  Pattern: &quot;\t&quot;
  Note: You shouldn't need to use this.
  
%T is identical to the 24-hour time format &quot;%H:%M:%S&quot;.
  Pattern: see the patterns for the individual terms
  Example: &quot;19:57:22&quot;
  Element: only uses names and attributes of the individual terms
  
%u is replaced by the pattern for the weekday as a decimal number
   [1,7], with &quot;1&quot; representing Monday.
  Pattern: &quot;[1-7]&quot;
  Example: &quot;4&quot; (which is Thursday)
  Element name: &quot;weekday&quot;
  Element attributes: &quot;type&quot; = &quot;Monday1&quot;
  Note: See also %w, which has a type of &quot;Sunday0&quot;
  
%U is replaced by the pattern for the week number of the year (Sunday
   as the first day of the week) as a decimal number [00,53].  In
   other words, this is the number of Sundays seen so far in the year.
  Pattern: &quot;([0-4][0-9]|5[0-3])&quot;
  Example: &quot;04&quot;, &quot;26&quot;
  Element name: &quot;week_number&quot;
  Element attributes: &quot;type&quot; = &quot;Sunday_count&quot;
  Note: See also %V and %W
  
%V is replaced by the pattern for the week number of the year (Monday
   as the first day of the week) as a decimal number [01,53]. This is
   used for week numbers where if the week containing 1 January has four
   or more days in the new year, then it is considered week 1. (Otherwise,
   it is the last week of the previous year, and the next week is week 1.)
  Pattern: &quot;(0[1-9]|[1-4][0-9]|5[0-3])&quot;
  Example: &quot;04&quot;, &quot;33&quot;
  Element name: &quot;week_number&quot;
  Element attributes: &quot;type&quot; = &quot;type_V&quot; (Got a better short name?)
  Note: See also %U and %W.  I don't know when to use this.
  
%w is replaced by pattern for the the weekday as a decimal number [0,6],
   with 0 representing Sunday.
  Pattern: &quot;[0-6]&quot;
  Example: &quot;6&quot;
  Element name: &quot;weekday&quot;
  Element attributes: &quot;type&quot; = &quot;Sunday0&quot;
  Note: See also %u, which has a type of &quot;Monday1&quot;
  
%W is replaced by the pattern for the week number of the year (Monday
   as the first day of the week) as a decimal number [00,53]. All days
   in a new year preceding the first Monday are considered to be in
   week 0.  In other words, this is the number of Mondays seen so far
   in the year.
  Pattern: &quot;([0-4][0-9]|5[0-3])&quot;
  Example: &quot;00&quot;, &quot;49&quot;
  Element name: &quot;week_number&quot;
  Element attributes: &quot;type&quot; = &quot;Monday_count&quot;
  Note: See also %U and %V.

%x is the same as &quot;%D&quot;, which is &quot;%m/%d/%y&quot;.
  Pattern: see the patterns for the individual terms
  Example: &quot;12/13/99&quot;
  Element: only uses names and attributes of the individual terms
  
%X is the same as &quot;%T&quot;, which is &quot;%H:%M:%S&quot;.
  Pattern: see the patterns for the individual terms
  Example: &quot;19:57:22&quot;
  Element: only uses names and attributes of the individual terms
  
%y is replaced by the pattern for the year without century, as a
   decimal number [00,99].
  Pattern: &quot;[0-9][0-9]&quot;
  Example: &quot;89&quot;, &quot;01&quot;
  Element name: &quot;year&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;
  Note: This is the same as %(YY).

%Y is replaced by the pattern for the year, including the century, as a
   decimal number.
  Pattern: &quot;[0-9][0-9][0-9][0-9]&quot;
  Example: &quot;1610&quot;, &quot;2002&quot;
  Element name: &quot;year&quot;
  Element attributes: &quot;type&quot; = &quot;long&quot;
  Note: This is the same as %(YYYY).
  
%z is replaced by the pattern for the time-zone as hour offset from GMT.
   (This is used when parsing RFC822-conformant dates, as in
     &quot;%a, %d %b %Y %H:%M:%S %z&quot;, except that %z does not include the
    pattern for a missing timezone -- should I fix that?).
  Pattern: &quot;[-+][0-9][0-9][0-9][0-9]&quot;
  Example: &quot;-0500&quot;  (for EST), &quot;+0100&quot; (for CET), &quot;+0530&quot; (somewhere in India)
  Element name: &quot;timezone&quot;
  Element attributes: &quot;type&quot; = &quot;RFC822&quot;

%Z is replaced by a pattern for a timezone name or abbreviation.  (It does
    not allow missing timezone field.)
  Pattern: &quot;(GMT([+-][0-9][0-9][0-9][0-9])?|[A-Z][a-zA-Z]*( [A-Z][a-zA-Z]*)*)&quot;
              (is there anything better?)
  Example: &quot;MST&quot;, &quot;GMT&quot;, &quot;Pacific Standard Time&quot;, &quot;GRNLNDST&quot;, &quot;MET DST&quot;,
           &quot;New Zealand Standard Time&quot;, &quot;NZST&quot;, &quot;SAST&quot;, &quot;GMT+0200&quot;, &quot;IDT&quot;
  Element name: &quot;timezone&quot;
  Element attributes: &quot;type&quot; = &quot;name&quot;
  
%% is replaced by the pattern for &quot;%&quot; (which happens to be &quot;%&quot;)
  Pattern: &quot;%&quot;
  Example: &quot;%&quot;
  Element: none

 === Martel specific extensions ===

%(Mon) is the same as &quot;%a&quot;.
  Pattern: See the definition for &quot;%a&quot;
  Example: &quot;Wed&quot; &quot;FRI&quot;
  Element name: &quot;weekday&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;

%(Monday) is the same as &quot;%A&quot;.
  Pattern: See the definition for &quot;%A&quot;
  Example: &quot;Thursday&quot; &quot;SUNDAY&quot;
  Element name: &quot;weekday&quot;
  Element attributes: &quot;type&quot; = &quot;long&quot;

%(Jan) is the same as &quot;%b&quot;.
  Pattern: See the definition for &quot;%b&quot;
  Example: &quot;Feb&quot;
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;

%(January) is the same as &quot;%B&quot;.
  Pattern: See the definition for &quot;%B&quot;
  Example: &quot;August&quot;, &quot;MAY&quot;
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;long&quot;

%(second) is the same as &quot;%S&quot;.
  Pattern: See the definition for &quot;%S&quot;.
  Example: &quot;03&quot;, &quot;25&quot;
  Element name: &quot;second&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;

%(minute) is the same as &quot;%M&quot;.
  Pattern: See the definition for &quot;%M&quot;
  Example: &quot;00&quot;, &quot;38&quot;
  Element name: &quot;minute&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;

%(12-hour) is replaced by the pattern for a 12 hour clock in any of
   the common formats.  (Numeric values from 1 to 12.)
  Pattern: &quot;(0[1-9]|1[012]?|[2-9]| [1-9])&quot;
  Example: &quot;2&quot;, &quot;02&quot;, &quot; 2&quot;, &quot;10&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;12-hour&quot;

%(24-hour) is replaced by the pattern for a 24 hour clock in any
   of the common formats.  (Numeric values from 0 to 23.)
  Pattern: &quot;([01][0-9]?|2[0123]?|[3-9]| [1-9])&quot;
  Example: &quot;9&quot;, &quot;09&quot;, &quot; 9&quot;, &quot;00&quot;, &quot;0&quot;, &quot; 0&quot;, &quot;23&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;24-hour&quot;

%(hour) is replaced by the pattern for any hour in either a
   12-hour or 24-hour clock.
  Pattern: &quot;([01][0-9]?|2[0123]?|[3-9]| [1-9])&quot;
     (this happens to be the same as %(24-hour)
  Example: &quot;9&quot;, &quot;09&quot;, &quot; 9&quot;, &quot;00&quot;, &quot;0&quot;, &quot; 0&quot;, &quot;23&quot;
  Element name: &quot;hour&quot;
  Element attributes: &quot;type&quot; = &quot;any&quot;

%(day) is replaced by the pattern for the day of the month as a decimal
   in any of the common day format
  Pattern: &quot;(0[1-9]|[12][0-9]?|3[01]?|[4-9]| [1-9])&quot;
  Example: &quot;9&quot;, &quot;09&quot;, &quot; 9&quot;, and &quot;31&quot;
  Element name: &quot;day&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;

%(DD) is the same as &quot;%d&quot;, which is the pattern for a day of the month
   as a decimal number [01,31].
  Pattern: See the definition for &quot;%d&quot;
  Example: &quot;09&quot;, &quot;31&quot;
  Element name: &quot;day&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;

%(month) is replaced by the pattern for the month as a decimal in any
   of the common month formats.
  Pattern: &quot;(0[1-9]|1[012]?|[2-9]| [1-9])&quot;
  Example: &quot;5&quot;, &quot;05&quot;, &quot; 5&quot;, and &quot;12&quot;.
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;
  Note: See also &quot;%m&quot; and %(MM).

%(MM) is the same as &quot;%m&quot;, which is a two-digit month number [01,12]
  Pattern: See the definition for &quot;%m&quot;
  Example: &quot;05&quot;, &quot;01&quot;, and &quot;12&quot;.
  Element name: &quot;month&quot;
  Element attributes: &quot;type&quot; = &quot;numeric&quot;
  Note: See also %(month).

%(YY)
  Pattern: &quot;[0-9][0-9]&quot;
  Example: &quot;10&quot;
  Element name: &quot;year&quot;
  Element attributes: &quot;type&quot; = &quot;short&quot;

%(YYYY)
  Pattern: &quot;[0-9][0-9][0-9][0-9]&quot;
  Example: &quot;1970&quot;
  Element name: &quot;year&quot;
  Element attributes: &quot;type&quot; = &quot;long&quot;

%(year) is replaced by the pattern accepting 2 digit and 4 digit year formats.
  Pattern: &quot;([0-9]{2}([0-9]{2})?)&quot;
  Example: &quot;2008&quot;, &quot;97&quot;
  Element name: &quot;year&quot;
  Element attributes: &quot;type&quot; = &quot;any&quot;
  Note: Need to change this before the year 10,000

</pre>

<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_any_case"></a><span class="summary-sig-name">_any_case</span>(<span class="summary-sig-arg">s</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Martel.Time-pysrc.html#_any_case">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Martel.Time-module.html#make_pattern" class="summary-sig-name">make_pattern</a>(<span class="summary-sig-arg">format</span>,
        <span class="summary-sig-arg">tag_format</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">%s</code><code class="variable-quote">'</code></span>)</span><br />
      format, tag_format = &quot;%s&quot; -&gt; regular expression pattern 
      string</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Martel.Time-pysrc.html#make_pattern">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="Martel.Time-module.html#make_expression" class="summary-sig-name">make_expression</a>(<span class="summary-sig-arg">format</span>,
        <span class="summary-sig-arg">tag_format</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">%s</code><code class="variable-quote">'</code></span>)</span><br />
      format, tag_format = &quot;%s&quot; -&gt; Martel Expresion</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Martel.Time-pysrc.html#make_expression">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_use_tag_format"></a><span class="summary-sig-name">_use_tag_format</span>(<span class="summary-sig-arg">tag_format</span>,
        <span class="summary-sig-arg">name</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Martel.Time-pysrc.html#_use_tag_format">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_parse_time"></a><span class="summary-sig-name">_parse_time</span>(<span class="summary-sig-arg">s</span>,
        <span class="summary-sig-arg">tag_format</span>,
        <span class="summary-sig-arg">text_to_result</span>,
        <span class="summary-sig-arg">group_to_result</span>,
        <span class="summary-sig-arg">re_to_result</span>,
        <span class="summary-sig-arg">t</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="Martel.Time-pysrc.html#_parse_time">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Martel.Time-module.html#_time_fields" class="summary-name" onclick="show_private();">_time_fields</a> = <code title="(('a',
  '([Mm][Oo][Nn]|[Tt][Uu][Ee]|[Ww][Ee][Dd]|[Tt][Hh][Uu]|[Ff][Rr][Ii]|[\
Ss][Aa][Tt]|[Ss][Uu][Nn])',
  'weekday',
  {'type': 'short'}),
 ('A',
  '([Mm][Oo][Nn][Dd][Aa][Yy]|[Tt][Uu][Ee][Ss][Dd][Aa][Yy]|[Ww][Ee][Dd]\
[Nn][Ee][Ss][Dd][Aa][Yy]|[Tt][Hh][Uu][Rr][Ss][Dd][Aa][Yy]|[Ff][Rr][Ii]\
..."><code class="variable-group">(</code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">a</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">([Mm][Oo][Nn]|[Tt][Uu][Ee]|[Ww][Ee][Dd]</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="Martel.Time-module.html#_time_table" class="summary-name" onclick="show_private();">_time_table</a> = <code title="{'%': ('%', None, None),
 '12-hour': ('(0[1-9]|1[012]?|[2-9]| [1-9])',
             'hour',
             {'type': '12-hour'}),
 '24-hour': ('([01][0-9]?|2[0123]?|[3-9]| [0-9])',
             'hour',
             {'type': '24-hour'}),
 'A': ('([Mm][Oo][Nn][Dd][Aa][Yy]|[Tt][Uu][Ee][Ss][Dd][Aa][Yy]|[Ww][Ee\
..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">%</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">%</code><code class="variable-quote">'</code><code class="variable-op">, </code>None<code class="variable-op">, </code>None<code class="variable-group">)</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">12-hour</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">(0[1-9]|1[</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="attrs"></a><span class="summary-name">attrs</span> = <code title="{'type': 'any'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">type</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">any</code><code class="variable-quote">'</code><code class="variable-group">}</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="pat"></a><span class="summary-name">pat</span> = <code title="'([0-9]{2}([0-9]{2})?)'"><code class="variable-quote">'</code><code class="variable-string">([0-9]{2}([0-9]{2})?)</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="spec"></a><span class="summary-name">spec</span> = <code title="'year'"><code class="variable-quote">'</code><code class="variable-string">year</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="tag"></a><span class="summary-name">tag</span> = <code title="'year'"><code class="variable-quote">'</code><code class="variable-string">year</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="v"></a><span class="summary-name">v</span> = <code title="'[-+]\\d{4}'"><code class="variable-quote">'</code><code class="variable-string">[-+]\\d{4}</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="make_pattern"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">make_pattern</span>(<span class="sig-arg">format</span>,
        <span class="sig-arg">tag_format</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">%s</code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Martel.Time-pysrc.html#make_pattern">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>format, tag_format = &quot;%s&quot; -&gt; regular expression pattern 
  string</p>
  <p>Turn the given time format string into the corresponding regular 
  expression string.  A format term may contain a Group name and attribute 
  information.  If present, the group name is %'ed with the tag_format to 
  produce the tag name to use.  Use None to specify that named groups 
  should not be used.</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">from</span> Martel <span class="py-keyword">import</span> Time
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> Time.make_pattern(<span class="py-string">&quot;%m-%Y)&quot;</span>, <span class="py-string">&quot;created-%s&quot;</span>)
<span class="py-output">(?P&lt;created-month?type=numeric&gt;(0[1-9]|1[012]))\-(?P&lt;created-year?type=long&gt;\d{4})\)</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt;</span></pre>
  <p>See the Time module docstring for more information.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="make_expression"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">make_expression</span>(<span class="sig-arg">format</span>,
        <span class="sig-arg">tag_format</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">%s</code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="Martel.Time-pysrc.html#make_expression">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">
format, tag_format = &quot;%s&quot; -&gt; Martel Expresion

    Turn the given time format string into the corresponding Martel
    Expression.  A format term may contain a Group name and attribute
    information.  If present, the group name is %'ed with the
    tag_format to produce the tag name to use.  Use None to specify
    that named groups should not be used.

    &gt;&gt;&gt; from Martel import Time
    &gt;&gt;&gt; from xml.sax import saxutils
    &gt;&gt;&gt; exp = Time.make_expression(&quot;%m-%Y\n&quot;, &quot;created-%s&quot;)
    &gt;&gt;&gt; parser = exp.make_parser()
    &gt;&gt;&gt; parser.setContentHandler(saxutils.XMLGenerator())
    &gt;&gt;&gt; parser.parseString(&quot;05-1921
&quot;)
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&gt;
    &lt;created-month type=&quot;numeric&quot;&gt;05&lt;/created-month&gt;-&lt;created-year type=&quot;long&quot;&gt;1921&lt;/created-year&gt;
    &gt;&gt;&gt; 

    See the Time module docstring for more information.
    
    

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-VariablesDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="_time_fields"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_time_fields</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">(</code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">a</code><code class="variable-quote">'</code><code class="variable-op">,</code>
  <code class="variable-quote">'</code><code class="variable-string">([Mm][Oo][Nn]|[Tt][Uu][Ee]|[Ww][Ee][Dd]|[Tt][Hh][Uu]|[Ff][Rr][Ii]|[</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-string">Ss][Aa][Tt]|[Ss][Uu][Nn])</code><code class="variable-quote">'</code><code class="variable-op">,</code>
  <code class="variable-quote">'</code><code class="variable-string">weekday</code><code class="variable-quote">'</code><code class="variable-op">,</code>
  <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">type</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">short</code><code class="variable-quote">'</code><code class="variable-group">}</code><code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">A</code><code class="variable-quote">'</code><code class="variable-op">,</code>
  <code class="variable-quote">'</code><code class="variable-string">([Mm][Oo][Nn][Dd][Aa][Yy]|[Tt][Uu][Ee][Ss][Dd][Aa][Yy]|[Ww][Ee][Dd]</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-string">[Nn][Ee][Ss][Dd][Aa][Yy]|[Tt][Hh][Uu][Rr][Ss][Dd][Aa][Yy]|[Ff][Rr][Ii]</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="_time_table"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_time_table</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">%</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">%</code><code class="variable-quote">'</code><code class="variable-op">, </code>None<code class="variable-op">, </code>None<code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">12-hour</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">(0[1-9]|1[012]?|[2-9]| [1-9])</code><code class="variable-quote">'</code><code class="variable-op">,</code>
             <code class="variable-quote">'</code><code class="variable-string">hour</code><code class="variable-quote">'</code><code class="variable-op">,</code>
             <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">type</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">12-hour</code><code class="variable-quote">'</code><code class="variable-group">}</code><code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">24-hour</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">([01][0-9]?|2[0123]?|[3-9]| [0-9])</code><code class="variable-quote">'</code><code class="variable-op">,</code>
             <code class="variable-quote">'</code><code class="variable-string">hour</code><code class="variable-quote">'</code><code class="variable-op">,</code>
             <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">type</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">24-hour</code><code class="variable-quote">'</code><code class="variable-group">}</code><code class="variable-group">)</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">A</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">([Mm][Oo][Nn][Dd][Aa][Yy]|[Tt][Uu][Ee][Ss][Dd][Aa][Yy]|[Ww][Ee</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Sep 15 09:26:29 2008
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>