Class DateAndTimeStringParser

Description

DateAndTimeStringParser breaks up strings into a date component and a time component and attempts to match each individually.

The string must contain a valid time component at the end in order to be parsed.

Located in /harmoni/core/Primitives/Chronology/StringParser/DateAndTimeStringParser.class.php (line 34)

SObject
   |
   --StringParser
      |
      --RegexStringParser
         |
         --DateAndTimeStringParser
Method Summary
string getRegex ()
void parse ()
Variables
Methods
getRegex (line 50)

Return the regular expression used by this parser.

If the input has a time component, then this parser can handle it.

  • 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/24/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 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:22:36 -0400 by phpDocumentor 1.3.0RC3