Skip to content
Snippets Groups Projects
Commit 9051c719 authored by Garrett Granroth's avatar Garrett Granroth
Browse files

Merge pull request #736 from mantidproject/DateAndTime_long

Add automatic conversion to long integer
parents 6af7b5c1 eb37c302
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment