]>
diplodocus.org Git - nmh/blob - docs/historical/mh-nov-1983/cmds/emitl.c
2 * Routine to convert a localtime(3) format date back into
3 * a system format date.
5 * Hats off to Bob Kridle for the insight that the way to do
6 * this is by binary search of the system date space.
11 struct tm
*localtime();
24 for (i
= 31; i
>= 0; i
--) {
27 if (dcmp(localtime(&conv
), dp
) > 0)
34 * Compare two localtime dates, return result.
45 register struct tm
*dp
, *dp2
;