18 #ifndef MAGICKCORE_TIMER_PRIVATE_H
19 #define MAGICKCORE_TIMER_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 static inline void GetMagickUTCtime(
const time_t *timep,
struct tm *result)
27 #if defined(MAGICKCORE_HAVE_GMTIME_R)
28 (void) gmtime_r(timep,result);
34 my_time=gmtime(timep);
35 if (my_time != (
struct tm *) NULL)
36 (void) memcpy(result,my_time,
sizeof(*my_time));
41 static inline void GetMagickLocaltime(
const time_t *timep,
struct tm *result)
43 #if defined(MAGICKCORE_HAVE_GMTIME_R)
44 (void) localtime_r(timep,result);
50 my_time=localtime(timep);
51 if (my_time != (
struct tm *) NULL)
52 (void) memcpy(result,my_time,
sizeof(*my_time));
57 extern MagickExport time_t
60 #if defined(__cplusplus) || defined(c_plusplus)