// vim:ts=8:expandtab#include<time.h>#include<stdio.h>#include<stdlib.h>voidprint_time(constchar*format,structtm*current_tm){staticcharpart[512];/* Get date & time */if(current_tm==NULL){return;}(void)strftime(part,sizeof(part),format,current_tm);printf("%s",part);}