datetime64_to_mpl

glue.utils.matplotlib.datetime64_to_mpl(d)[source]

Convert numpy.datetime64 or an ndarray of those types to Gregorian date as UTC float. Roundoff is via float64 precision. Practically: microseconds for dates between 290301 BC, 294241 AD, milliseconds for larger dates (see numpy.datetime64). Nanoseconds aren’t possible because we do times compared to 0001-01-01T00:00:00 (plus one day).