LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
25 #ifndef LSST_DAF_BASE_DATETIME_H
26 #define LSST_DAF_BASE_DATETIME_H
55 namespace serialization {
204 bool operator==(
DateTime const& rhs)
const;
223 static
void initializeLeapSeconds(
std::
string const& leapString);
229 void _assertValid()
const {
242 double _getMjd(Timescale
scale)
const;
251 double _getJd(Timescale
scale)
const;
260 double _getEpoch(Timescale
scale)
const;
269 void setNsecsFromMjd(
double mjd, Timescale
scale);
278 void setNsecsFromJd(
double jd, Timescale
scale);
287 void setNsecsFromEpoch(
double epoch, Timescale
scale);
289 friend class boost::serialization::access;
297 template <
class Archive>
298 void serialize(Archive ar,
int const version) {
bool isValid() const
Is this date valid?
size_t operator()(argument_type const &obj) const noexcept
std::size_t hash_value(Extent< T, N > const &extent) noexcept
Class for handling dates/times, including MJD, UTC, and TAI.
#define LSST_EXPORT
Make a symbol visible even if visiblity is hidden (e.g.
constexpr static long long invalid_nsecs
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
def scale(algorithm, min, max=None, frame=None)
Reports errors that are due to events beyond the control of the program.