rem: _trp->dtstart = ic_parse_datetime(_in);  _tm = localtime(&_trp->dtstart); _trp->ts.tm_sec = _tm->tm_sec;         _trp->ts.tm_min = _tm->tm_min;         _trp->ts.tm_hour = _tm->tm_hour;       _trp->ts.tm_mday = _tm->tm_mday;       _trp->ts.tm_mon = _tm->tm_mon;         _trp->ts.tm_year = _tm->tm_year;       _trp->ts.tm_wday = _tm->tm_wday;       _trp->ts.tm_yday = _tm->tm_yday;       _trp->ts.tm_isdst = _tm->tm_isdst;      return 0;
add: _trp->dtstart = ic_parse_datetime(_in, &(_trp->ts)); DBG("----->dtstart = %d | %s\n",_trp->dtstart,ctime(&(_trp->dtstart))); return (_trp->dtstart==0)?-1:0;
context: int tr_parse_dtstart(tmrec_p _trp, char *_in){	struct tm *_tm;	if(!_trp || !_in)		return -1;	_trp->dtstart = ic_parse_datetime(_in);		_tm = localtime(&_trp->dtstart);	_trp->ts.tm_sec = _tm->tm_sec;        /* seconds */	_trp->ts.tm_min = _tm->tm_min;        /* minutes */	_trp->ts.tm_hour = _tm->tm_hour;      /* hours */	_trp->ts.tm_mday = _tm->tm_mday;      /* day of the month */	_trp->ts.tm_mon = _tm->tm_mon;        /* month */	_trp->ts.tm_year = _tm->tm_year;      /* year */	_trp->ts.tm_wday = _tm->tm_wday;      /* day of the week */	_trp->ts.tm_yday = _tm->tm_yday;      /* day in the year */	_trp->ts.tm_isdst = _tm->tm_isdst;    /* daylight saving time */	return 0;}