need "yy-ddd-hh:mm:ss ==> (time_t) clock" converter
Lars Wirzenius
wirzenius at cc.helsinki.fi
Wed Feb 27 12:30:21 AEST 1991
In article <ENAG.91Feb26020137 at holmenkollen.ifi.uio.no>, enag at ifi.uio.no (Erik Naggum) writes:
[ A Unix shell script and a GNU Emacs lisp-routine that generate a table
with cumulative counts from the beginning of the year deleted ]
Ok, suppose you want to have the cumulative counts, but don't run either
Unix nor GNU Emacs? You use the compiler:
int cumulative_yday[] = {
0, /* days before Jan 1st */
0+31, /* Feb 1st */
0+31+28, /* March 1st */
0+31+28+31, /* April 1st */
...
};
Or is there anything I miss?
--
Lars Wirzenius wirzenius at cc.helsinki.fi
More information about the Comp.lang.c
mailing list