Disable DateTime::exactGmtNow() under MacOS
`clock_gettime(CLOCK_REALTIME, &t);` does not seem to be available under MacOS
This commit is contained in:
parent
8bed0adc00
commit
b69d4a8b65
|
@ -277,7 +277,7 @@ const char *DateTime::printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation)
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PLATFORM_UNIX)
|
#if defined(PLATFORM_UNIX) && !defined(PLATFORM_MAC)
|
||||||
/*!
|
/*!
|
||||||
* \brief Returns a DateTime object that is set to the current date and time on this computer, expressed as the GMT time.
|
* \brief Returns a DateTime object that is set to the current date and time on this computer, expressed as the GMT time.
|
||||||
* \remarks
|
* \remarks
|
||||||
|
|
|
@ -87,7 +87,7 @@ public:
|
||||||
static constexpr DateTime unixEpochStart();
|
static constexpr DateTime unixEpochStart();
|
||||||
static DateTime now();
|
static DateTime now();
|
||||||
static DateTime gmtNow();
|
static DateTime gmtNow();
|
||||||
#if defined(PLATFORM_UNIX)
|
#if defined(PLATFORM_UNIX) && !defined(PLATFORM_MAC)
|
||||||
static DateTime exactGmtNow();
|
static DateTime exactGmtNow();
|
||||||
#endif
|
#endif
|
||||||
constexpr static bool isLeapYear(int year);
|
constexpr static bool isLeapYear(int year);
|
||||||
|
|
Loading…
Reference in New Issue