9#include <boost/date_time/date.hpp>
10#include <boost/date_time/time.hpp>
21using namespace Types::Core;
40 DateAndTime t1 =
begin();
44 DateAndTime t2 =
end();
58 s << t.
begin().toSimpleString() <<
" - " << t.
end().toSimpleString();
Represents a time interval.
TimeInterval()
Default constructor.
Types::Core::DateAndTime m_end
end
Types::Core::DateAndTime begin() const
Beginning of the interval.
bool isValid() const
True if the interval is not empty.
Types::Core::DateAndTime end() const
End of the interval.
TimeInterval intersection(const TimeInterval &ti) const
Returns an intersection of two intervals.
Types::Core::DateAndTime m_begin
begin
std::string end_str() const
String representation of the end time.
std::string begin_str() const
String representation of the begin time.
MANTID_KERNEL_DLL std::ostream & operator<<(std::ostream &, CPUTimer &)
Convenience function to provide for easier debug printing.
Helper class which provides the Collimation Length for SANS instruments.