diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp index 8c567746bd667815407025cbd35a2ef49cd8f30d..fa72f44044485cf5d8d8791376f36b9d3fff30ac 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Exports/DateAndTime.cpp @@ -29,6 +29,7 @@ void export_DateAndTime() .def("totalNanoseconds", &DateAndTime::totalNanoseconds) .def("setToMinimum", &DateAndTime::setToMinimum) .def("__str__", &ISO8601StringPlusSpace) + .def("__long__", &DateAndTime::totalNanoseconds) .def(self == self) .def(self != self) // cppcheck-suppress duplicateExpression