C++ boost日期比较

char startDatetimeFir[20] = "20130610151521";
  char startDatetimeSec[20] = "20130610143525";


  date  dtFirst = from_undelimited_string(startDatetimeFir);
  date  dtSecond = from_undelimited_string(startDatetimeSec);

  if (dtFirst == dtSecond)
  {
   cout << "EQ" << endl;  //输出EQ
  }
  else
  {
   cout <<"NEQ" << endl;
  }
   

 

posted @ 2013-06-20 20:47  Predator  阅读(292)  评论(0编辑  收藏  举报