Class MonthNameDayYearStringParser

Description

This StringParser can handle dates that contain a textual month-name or month-abbreviation followed by an integer day then an integer year.

Delimiters are ignored, but required between the day and year. Examples:

  • April 5, 1982
  • Apr 5, '82

Located in /harmoni/core/Primitives/Chronology/StringParser/MonthNameDayYearStringParser.class.php (line 37)

SObject
   |
   --StringParser
      |
      --RegexStringParser
         |
         --TwoDigitYearStringParser
            |
            --MonthNameDayYearStringParser
Method Summary
string getRegex ()
void parse ()
Variables
Methods
getRegex (line 52)

Return the regular expression used by this parser

  • since: 5/24/05
  • access: protected
string getRegex ()

Redefinition of:
RegexStringParser::getRegex()
Return the regular expression used by this parser
parse (line 65)

Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.

  • since: 5/23/05
  • access: private
void parse ()

Redefinition of:
StringParser::parse()
Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.

Inherited Methods

Inherited From TwoDigitYearStringParser

TwoDigitYearStringParser::setYear()

Inherited From RegexStringParser

RegexStringParser::canHandle()
RegexStringParser::getRegex()

Inherited From StringParser

StringParser::StringParser()
StringParser::canHandle()
StringParser::day()
StringParser::getParserFor()
StringParser::hour()
StringParser::minute()
StringParser::month()
StringParser::offsetHour()
StringParser::offsetMinute()
StringParser::offsetSecond()
StringParser::parse()
StringParser::second()
StringParser::setDay()
StringParser::setHour()
StringParser::setMinute()
StringParser::setMonth()
StringParser::setOffsetHour()
StringParser::setOffsetMinute()
StringParser::setOffsetSecond()
StringParser::setSecond()
StringParser::setYear()
StringParser::year()

Inherited From SObject

SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()

Documentation generated on Wed, 19 Sep 2007 10:25:07 -0400 by phpDocumentor 1.3.0RC3