Fix use of std::time
This commit is contained in:
parent
ff5eb6c7c9
commit
400e73005a
|
@ -7,10 +7,6 @@
|
|||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
|
||||
#if defined(PLATFORM_UNIX)
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
using namespace ChronoUtilities;
|
||||
using namespace ConversionUtilities;
|
||||
|
|
|
@ -390,7 +390,7 @@ constexpr inline DateTime DateTime::unixEpochStart()
|
|||
*/
|
||||
inline DateTime DateTime::now()
|
||||
{
|
||||
return DateTime::fromTimeStamp(time(nullptr));
|
||||
return DateTime::fromTimeStamp(std::time(nullptr));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -399,7 +399,7 @@ inline DateTime DateTime::now()
|
|||
*/
|
||||
inline DateTime DateTime::gmtNow()
|
||||
{
|
||||
return DateTime::fromTimeStampGmt(time(nullptr));
|
||||
return DateTime::fromTimeStampGmt(std::time(nullptr));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue