2 % (c) The GRASP/AQUA Project, Glasgow University, 1995
4 \subsection[showTime.lc]{ClockTime.showsPrec Runtime Support}
16 showTime(size, d, buf)
26 return (StgAddr)strcpy(buf, "ClockTime.show{LibTime}: out of range");
31 t = - (time_t) ((StgInt *)d)[0];
34 (StgAddr)strcpy(buf, "ClockTime.show{LibTime}: out of range");
37 t = (time_t) ((StgInt *)d)[0];
39 return (StgAddr) strcpy(buf, "ClockTime.show{LibTime}: out of range");
43 if (tm != NULL && strftime(buf, 32 /*Magic number*/, "%a %b %d %T %Z %Y", tm) > 0)
45 return (StgAddr)strcpy(buf, "ClockTime.show{LibTime}: internal error");