Yup. Silly as it may sound the <code> tags in WordPress are pretty much useless when you want to paste a code snippet and not have it look like a poem written by crazy robot… 🙂 Use the <pre> .. </pre> tags instead. Here’s an example. Code formatted with ‘<code>’: while( 1 ) { tmeasure_t0( […]
Day: 2 July 2012
Convert UNIX time_t into a date/time text string
Often times, when working with the standard Linux/UNIX time format (time_t) one needs to quickly find out what is the “human readable” date and time text string a particular time_t value corresponds to. NOTE: The ‘C’ time_t type is the number of seconds elapsed since the “epoch”, the epoch being January 1st 1970 at 00:00:00. […]