This a python binding to the C++ class Mantid::Kernel::DateAndTime.
The equivalent object in python is numpy.datetime64. The two classes have a different EPOCH. Note that mantid.kernel.DateAndTime uses the GPS epoch of 1990, where numpy.datetime64 uses the unix epoch of 1970. For that reason, there is an additional method mantid.kernel.DateAndTime.to_datetime64().
To convert an array of mantid.kernel.DateAndTime, analgous to what mantid.kernel.FloatTimeSeriesProperty.times() does internally, use the code:
times = np.array(times, dtype=np.int64) * np.timedelta64(1,'ns') + np.datetime64('1990-01-01T00:00')
With numpy.datetime64, finding the number of seconds between two times is simply
diff = (timeArray[-1]-timeArray[0]) / np.timedelta64(1, 's')
Construct from an ISO8601 string
Convert to numpy.datetime64
Since 1990-01-01T00:00
Since 1990-01-01T00:00