simpleparse.common.iso_date
index
/usr/src/tmp/python3-module-simpleparse-buildroot/usr/lib/python3/site-packages/simpleparse/common/iso_date.py

Canonical ISO date format YYYY-MM-DDTHH:mm:SS+HH:mm
 
This parser is _extremely_ strict, and the dates that match it,
though really easy to work with for the computer, are not particularly
readable.  See the iso_date_loose module for a slightly relaxed
definition which allows the "T" character to be replaced by a
" " character, and allows a space before the timezone offset, as well
as allowing the integer values to use non-0-padded integers.
 
 
    ISO_date -- YYYY-MM-DD format, with a month and date optional
    ISO_time -- HH:mm:SS format, with minutes and seconds optional
    ISO_date_time -- YYYY-MM-DD HH:mm:SS+HH:mm format,
        with time optional and TimeZone offset optional
 
Interpreter:
    MxInterpreter
        Interprets the parse tree as mx.DateTime values
        ISO_date and ISO_time
            returns DateTime objects
        Time only
            returns RelativeDateTime object which, when
            added to a DateTime gives you the given time
            within that day

 
Modules
       
simpleparse.common.chartypes
simpleparse.common
simpleparse.common.numbers
simpleparse.objectgenerator

 
Data
        __file__ = '/usr/src/tmp/python3-module-simpleparse-buildroo...hon3/site-packages/simpleparse/common/iso_date.py'
__name__ = 'simpleparse.common.iso_date'
__package__ = 'simpleparse.common'
_p = <simpleparse.parser.Parser object>
c = {'ISO_date': LibraryElement(value='ISO_date',report=True,nega...,repeating=False,expanded=False,lookahead=False ), 'ISO_date_time': LibraryElement(value='ISO_date_time',report=True...,repeating=False,expanded=False,lookahead=False ), 'ISO_time': LibraryElement(value='ISO_time',report=True,nega...,repeating=False,expanded=False,lookahead=False )}
declaration = '\nyear := digit,digit,digit,digit\nmonth ...ate_time := ISO_date, ([T], ISO_time)?, offset?\n'
haveMX = 0
name = 'ISO_date_time'