#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/nt-base-private.h"
+#include "MagickCore/string-private.h"
#include "MagickCore/timer.h"
#include "MagickCore/timer-private.h"
\f
*/
MagickPrivate time_t GetMagickTime(void)
{
+ char
+ *source_date_epoch = getenv("SOURCE_DATE_EPOCH");
+
+ if (source_date_epoch != (char *) NULL)
+ {
+ time_t
+ epoch;
+
+ epoch=(time_t) StringToDouble(source_date_epoch,(char **) NULL);
+ if ((epoch > 0) && (epoch <= time((time_t *) NULL)))
+ return(epoch);
+ }
return(time((time_t *) NULL));
}
\f