lib/printer: support for timestamps and diffs