I saw some warning in my compiler (Visual studio 2012) that localtime is unsafe but I don't think I should use localtime_s because it's non-standard c++ from what I understand and I need to write code that complies with the 98' (I think) standard for my class.