Python: module simpleparse.common.iso_date_loose

simpleparse.common.iso_date_loose | index /home/mcfletch/pylive/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
`` |  | DispatchProcessor(Processor) MxInterpreter
class MxInterpreter(DispatchProcessor)
`` | `Interpret a parsed ISO_date_time_loose in GMT/UTC time or localtime`
| Method resolution order: MxInterpreter DispatchProcessor 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 other attributes defined here: dateName = 'ISO_date_loose' day = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` float = <FloatInterpreter object @ 46912541567744> `Interpret a standard float value as a float` hour = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` int = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` minute = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` month = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` offset_hour = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` offset_minute = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` second = <FloatInterpreter object @ 46912541567744> `Interpret a standard float value as a float` timeName = 'ISO_time_loose' year = <IntInterpreter object @ 46912541567528> `Interpret an integer (or unsigned integer) string as an integer` Methods inherited from 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 Processor: __repr__(self) `Return a representation of the class`

Data
`` |  | _p = <simpleparse.parser.Parser instance> c = {'ISO_date_loose': LibraryElement( production = 'ISO_date_loose...enerator.Generator instance at 0x2aaaad6009e0>, ), 'ISO_date_time_loose': LibraryElement( production = 'ISO_date_time_...enerator.Generator instance at 0x2aaaad6009e0>, ), 'ISO_time_loose': LibraryElement( production = 'ISO_time_loose...enerator.Generator instance at 0x2aaaad6009e0>, )} declaration = "\n<date_separator> := [-]\n<time_separator> := ':'...te_loose, ([T ], ISO_time_loose)?, [ ]?, offset?\n" haveMX = 1 name = 'ISO_date_loose'