preserve ABI
This commit is contained in:
parent
d71e6c56d4
commit
df9c0573bf
|
@ -5,6 +5,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace ChronoUtilities;
|
using namespace ChronoUtilities;
|
||||||
|
@ -34,6 +35,14 @@ inline bool inRangeExclMax(num1 val, num2 min, num3 max)
|
||||||
return (val) >= (min) && (val) < (max);
|
return (val) >= (min) && (val) < (max);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
|
||||||
|
*/
|
||||||
|
DateTime DateTime::now()
|
||||||
|
{
|
||||||
|
return DateTime::fromTimeStamp(time(nullptr));
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \class ChronoUtilities::DateTime
|
* \class ChronoUtilities::DateTime
|
||||||
* \brief Represents an instant in time, typically expressed as a date and time of day.
|
* \brief Represents an instant in time, typically expressed as a date and time of day.
|
||||||
|
@ -270,5 +279,3 @@ int DateTime::getDatePart(DatePart part) const
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "../conversion/types.h"
|
#include "../conversion/types.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <ctime>
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
namespace ChronoUtilities
|
namespace ChronoUtilities
|
||||||
|
@ -315,14 +314,6 @@ constexpr inline DateTime DateTime::eternity()
|
||||||
return DateTime(std::numeric_limits<decltype(m_ticks)>::max());
|
return DateTime(std::numeric_limits<decltype(m_ticks)>::max());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
|
|
||||||
*/
|
|
||||||
inline DateTime DateTime::now()
|
|
||||||
{
|
|
||||||
return DateTime::fromTimeStamp(time(nullptr));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Indicates whether two DateTime instances are equal.
|
* \brief Indicates whether two DateTime instances are equal.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue