G
Gary Wessle
#include "boost/date_time/local_time/local_time.hpp"
#include <iostream>
int main()
{
using namespace boost::gregorian;
using namespace boost::local_time;
using namespace boost:osix_time;
ptime t1(date(2007,Jan,21), hours(7)+minutes(30));
time_t t2( 1170202896 );
cout << t1 - t2 << endl;
}
dear progrmmers.
I need to set a bool to true if a given time_t is past a time string of a formate say mm/dd/yyyy hh:mm.
I have been playing around but cann't just get it, please help
thanks
#include <iostream>
int main()
{
using namespace boost::gregorian;
using namespace boost::local_time;
using namespace boost:osix_time;
ptime t1(date(2007,Jan,21), hours(7)+minutes(30));
time_t t2( 1170202896 );
cout << t1 - t2 << endl;
}
dear progrmmers.
I need to set a bool to true if a given time_t is past a time string of a formate say mm/dd/yyyy hh:mm.
I have been playing around but cann't just get it, please help
thanks