I'm just looking for a simpler method to get the time and date than the ctime class provides. I want one where it's a little easier to format. I was at first trying to figure out the strftime but ended up using the
I don't know what it means but I ended up with some junk values. I easily threw away, but is there a more standard library that provides similar functions.Code:Date::Date() { time_t rawtime; rawtime = time(&rawtime); string junk; istringstream i (ctime(&rawtime)); i >> junk >> month >> day >> junk >> year; }