Mantid
Loading...
Searching...
No Matches
DateAndTime.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11#include <boost/python/object.hpp>
12#include <numpy/ndarraytypes.h>
13
14namespace Mantid {
15namespace PythonInterface {
16namespace Converters {
17
19MANTID_PYTHONINTERFACE_CORE_DLL PyObject *to_datetime64(const Types::Core::DateAndTime &dateandtime);
21MANTID_PYTHONINTERFACE_CORE_DLL npy_datetime to_npy_datetime(const Types::Core::DateAndTime &dateandtime);
23MANTID_PYTHONINTERFACE_CORE_DLL std::shared_ptr<Types::Core::DateAndTime>
24to_dateandtime(const boost::python::api::object &value);
25} // namespace Converters
26} // namespace PythonInterface
27} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
_PyArray_Descr PyArray_Descr
#define MANTID_PYTHONINTERFACE_CORE_DLL
Definition: DllConfig.h:17
MANTID_PYTHONINTERFACE_CORE_DLL PyArray_Descr * descr_ns()
Definition: DateAndTime.cpp:46
MANTID_PYTHONINTERFACE_CORE_DLL std::shared_ptr< Types::Core::DateAndTime > to_dateandtime(const boost::python::api::object &value)
Definition: DateAndTime.cpp:81
MANTID_PYTHONINTERFACE_CORE_DLL PyObject * to_datetime64(const Types::Core::DateAndTime &dateandtime)
Convert to numpy's datetime64. This is panda's name for the function.
MANTID_PYTHONINTERFACE_CORE_DLL npy_datetime to_npy_datetime(const Types::Core::DateAndTime &dateandtime)
Total nanoseconds since the unix epoch.
Helper class which provides the Collimation Length for SANS instruments.