#include 
#include 
#include 
#include 

static char* datetime(char * buf)
{
  struct timeval tv;
  time_t nowtime;
  struct tm *nowtm;
  char timestrbuf1[64]; timestrbuf1[0] = 0x0;

  gettimeofday(&tv, NULL);...