Example #1
0
	TTimeSpan operator-(const TDateTime& other){
		time_t dt1 = GetUnixTimestamp();
		time_t dt2 = other.GetUnixTimestamp();
		if (dt2>dt1) swap(dt1, dt2);
		time_t dtr = dt1 - dt2;
		TTimeSpan temp(dtr);
		return temp;
	}
Example #2
0
	bool operator < (const TDateTime &other){
		return (GetUnixTimestamp()< other.GetUnixTimestamp());
	}