src/English/timex/TimeObj.cpp
/* Sets current TimeObj to a specific date/time in relation to context by
looking at the values of mod, unit and num.  Ex: mod = "ago", unit = "year",
num = "3" --> set to 3 years before context
*/
Sets current TimeObj to a specific date/time in relation to context by
looking at the values of mod, unit and num.
Sets current TimeObj to a specific date / time in relation to context by looking at the values of mod unit and num .
void TimeObj::setRelativeTime(TimePoint *context, const wstring &verbTense, const wstring &mod, const wstring &unit, int num) {	
	_dateAndTime->setRelativeTime(context, verbTense, mod, unit, num);
	_set = false;
	_anchor->clear();
	_duration->clear();
	_generic = L"";	
	_anchor_dir = L"";
}
void TimeObj :: setRelativeTime ( TimePoint * context , const wstring & verbTense , const wstring & mod , const wstring & unit , int num ) { _dateAndTime -> setRelativeTime ( context , verbTense , mod , unit , num ) ; _set = false ; _anchor -> clear ( ) ; _duration -> clear ( ) ; _generic = L" " ; _anchor_dir = L" " ; }
Sets current TimeObj to a specific date/time in relation to context by
looking at the values of mod, unit and num.
Sets current TimeObj to a specific date / time in relation to context by looking at the values of mod unit and num .