simpleparse.common.iso_date_loose
index
s:\sp\simpleparse\common\iso_date_loose.py

Somewhat Looser ISO date format YYYY-MM-DD HH:mm:SS +HH:mm
 
        ISO_date_loose -- YYYY-MM-DD format, with a month and day optional,
                month or day may be specified without leading 0
        ISO_time_loose -- HH:mm:SS format, with minutes and seconds optional
                all numbers may be specified without leading 0
        ISO_date_time_loose -- YYYY-MM-DD HH:mm:SS +HH:mm format,
                with time optional and TimeZone offset optional,
                same format for date and time as above
 
Interpreter:
        MxInterpreter
                Interprets the parse tree as mx.DateTime values
                Date and DateTime -> DateTime objects
                Time only -> RelativeDateTime

 
Modules
            
mx.DateTime
simpleparse.common.chartypes
simpleparse.common
simpleparse.common.numbers
simpleparse.objectgenerator
 
Classes
            
simpleparse.dispatchprocessor.DispatchProcessor(simpleparse.processor.Processor)
MxInterpreter
 
class MxInterpreter(simpleparse.dispatchprocessor.DispatchProcessor)
      Interpret a parsed ISO_date_time_loose in GMT/UTC time or localtime
 
  
Method resolution order:
MxInterpreter
simpleparse.dispatchprocessor.DispatchProcessor
simpleparse.processor.Processor
simpleparse.processor.MethodSource

Methods defined here:
ISO_date_loose(self, (tag, left, right, sublist), buffer)
Interpret the loose ISO date format
ISO_date_time_loose(self, (tag, left, right, sublist), buffer)
Interpret the loose ISO date + time format
ISO_time_loose(self, (tag, left, right, sublist), buffer)
Interpret the loose ISO time format
__init__(self, inputLocal=1, returnLocal=1)
offset(self, (tag, left, right, sublist), buffer)
Calculate the time zone offset as a date-time delta
offset_sign(self, (tag, left, right, sublist), buffer)
Interpret the offset sign as a multiplier

Data and non-method functions defined here:
__doc__ = 'Interpret a parsed ISO_date_time_loose in GMT/UTC time or localtime\n\t\t'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'simpleparse.common.iso_date_loose'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
dateName = 'ISO_date_loose'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
day = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
float = <FloatInterpreter object @ 8518896>
Interpret a standard float value as a float
hour = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
int = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
minute = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
month = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
offset_hour = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
offset_minute = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer
second = <FloatInterpreter object @ 8518896>
Interpret a standard float value as a float
timeName = 'ISO_time_loose'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
year = <IntInterpreter object @ 8518280>
Interpret an integer (or unsigned integer) string as an integer

Methods inherited from simpleparse.dispatchprocessor.DispatchProcessor:
__call__(self, value, buffer)
Process the results of the parsing run over buffer
 
Value can either be: (success, tags, next) for a top-level
production, or (tag, left, right, children) for a non-top
production.

Methods inherited from simpleparse.processor.Processor:
__repr__(self)
Return a representation of the class
 
Data
             __file__ = r'S:\sp\simpleparse\common\iso_date_loose.pyc'
__name__ = 'simpleparse.common.iso_date_loose'
_p = <simpleparse.parser.Parser instance at 0x0084ECE0>
c = {'ISO_date_loose': LibraryElement( production = 'ISO_date_loose...se.generator.Generator instance at 0x0080B330>, ), 'ISO_date_time_loose': LibraryElement( production = 'ISO_date_time_...se.generator.Generator instance at 0x0080B330>, ), 'ISO_time_loose': LibraryElement( production = 'ISO_time_loose...se.generator.Generator instance at 0x0080B330>, )}
declaration = "\n<date_separator> := [-]\n<time_separator> := ':'...te_loose, ([T ], ISO_time_loose)?, [ ]?, offset?\n"
haveMX = 1
name = 'ISO_date_loose'