This class implements a method for converting from a two-digit year, such as '82' to the four-digit '1982' equivalent. Due to the lack of information contained in a two-digit year, the only valid years are 1970-2069.
This class extends RegexStringParser only as a matter of convenience as its decendents at the time of this refactoring all were decendents of RegexStringParser.
Located in /harmoni/core/Primitives/Chronology/StringParser/TwoDigitYearStringParser.class.php (line 39)
SObject | --StringParser | --RegexStringParser | --TwoDigitYearStringParser
Class | Description |
---|---|
DayMonthNameYearStringParser | This StringParser can handle dates that contain an integer day followed by a textual month-name or month-abbreviation followed by an integer year. |
MonthNameDayYearStringParser | This StringParser can handle dates that contain a textual month-name or month-abbreviation followed by an integer day then an integer year. |
MonthNumberDayYearStringParser | This StringParser can handle dates that contain an integer month followed by |
Set the year
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:27:34 -0400 by phpDocumentor 1.3.0RC3