#include"script.h" int main() { Date a, b, c; a.actual(); // t.year, t.month, ... contain actual date and time b.day = 4; a += b; // a contain actual date plus 4 days b.reset(); b.month = 15; a -= b; // a contain actual date minus 15 months c = a; a.actual(); b.reset(); b.hour = 5; b.minute = 34; a += b; // a contain actual date plus 5 hours and 34 minutes if( a > c ) { //for this example true // ... } a = "27/07/2080 15:53:23"; b = "..,,;27.::7 abc2080;15##53v23"; // a == b c = "2080.7.27_15-53-23"; // c == a b = ""; // the same as b.reset(); c = "0 0 0 14:32:10"; // set time and reset date c = "2090 1 15"; // set date to 2090/01/15 and reset time }