only try printing if there is something to print, timestamp conversion
Merge pull request #4 from kraigu/test

pull test into master