does anyone know of an easy way to create a time_t variable from a timestamp integer.
or more generally, convert an int containing a timestamp to a string containing a readable date.
i know how to do this for the current time.
TIA, rotis23
does anyone know of an easy way to create a time_t variable from a timestamp integer.
or more generally, convert an int containing a timestamp to a string containing a readable date.
i know how to do this for the current time.
TIA, rotis23
i have a timestamp stored as an integer;
Code:long my_timestamp = 1037732323; //for example
thanks, thats what i wanted to know!
i get the timestamp from a mysql database as an element in a mysql_row which is effectively a char**. i then convert it into numerical form to do time difference calculations.