2 * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
4 * $Id: showTime.c,v 1.4 1999/09/30 12:42:26 sof Exp $
6 * ClockTime.showsPrec Runtime Support
12 #if TIME_WITH_SYS_TIME
13 # include <sys/time.h>
17 # include <sys/time.h>
24 showTime(I_ size, StgByteArray d, I_ maxsize, StgByteArray buf)
34 t = - (time_t) ((StgInt *)d)[0];
37 t = (time_t) ((StgInt *)d)[0];
43 if (tm != NULL && strftime(buf, maxsize, "%a %b %d %T %Z %Y", tm) > 0) {