How do i make use of this constructor?
i.eCode:// Consructor
Date::Date(tm _date)
{
SetDate(_date);
}
............
// Get the local date and time of system
tm Date::getCurrentTime()
{
time_t rawtime;
struct tm* timeinfo;
time( &rawtime );
timeinfo = localtime ( &rawtime );
return *timeinfo;
}
Code:
#include "Date.h"
Class A
{
private:
Date currentDate(Date::getCurrentTime()); // Is this correct?
};