timestamp display function in macros