I'm writing a program that gets the current time, I took the example off of the tutorials on this site for getting the current time and now I'm trying to break up the seconds into years then months etc. When I'm compiling I get the error "error: invalid operands of types 'double' and 'const double' to binary 'operator%' and can't figure out how to fix it, does somebody know what I'm doing wrong?
if you don't know what this means I'll translate to english: "integers only".
Also I would recommend that you do not store seconds (or any time variable) in double or float as they are less precise than integer.