void log(){
time_t current = time(0);
tm *ptm = localtime(¤t);
stuf...
}
Just want to be sure - do i need to release tm point
No you should not deallocate it,the structure is statically allocated.
Check the documentation:
Return value
pointer to a static internalstd::tm
object on success, orNULL
otherwise. The structure may be shared betweenstd::gmtime
,std::localtime
, andstd::ctime
, and may be overwritten on each invocation.