Disable DateTime::exactGmtNow() under MacOS

`clock_gettime(CLOCK_REALTIME, &t);` does not seem to
be available under MacOS
This commit is contained in:
Martchus 2017-07-29 00:32:19 +02:00
parent 8bed0adc00
commit b69d4a8b65
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ const char *DateTime::printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation)
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.
* \remarks

View File

@ -87,7 +87,7 @@ public:
static constexpr DateTime unixEpochStart();
static DateTime now();
static DateTime gmtNow();
#if defined(PLATFORM_UNIX)
#if defined(PLATFORM_UNIX) && !defined(PLATFORM_MAC)
static DateTime exactGmtNow();
#endif
constexpr static bool isLeapYear(int year);